From c856aa2c446469f09953299a7b080bfd80938d60 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Tue, 8 Feb 2011 04:50:57 +0000 Subject: [PATCH] - fixed models that flicker when intersecting with other polygons (also known as z-fighting) --- source/shared_lib/sources/graphics/gl/model_renderer_gl.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/shared_lib/sources/graphics/gl/model_renderer_gl.cpp b/source/shared_lib/sources/graphics/gl/model_renderer_gl.cpp index 9077d213..6e638f15 100644 --- a/source/shared_lib/sources/graphics/gl/model_renderer_gl.cpp +++ b/source/shared_lib/sources/graphics/gl/model_renderer_gl.cpp @@ -143,6 +143,7 @@ void ModelRendererGl::renderMesh(Mesh *mesh) { } else{ glEnable(GL_CULL_FACE); + glPolygonOffset(0.05, 0); } //set color