From 1ae419aaa3652f59e9db28717a01e067071198fc Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Sun, 8 Jul 2012 21:19:06 +0000 Subject: [PATCH] gpu: enable backface culling for indexed meshes, too. --- src/gpu/vertexbuffer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gpu/vertexbuffer.cpp b/src/gpu/vertexbuffer.cpp index 7fb2400f..5b4acd60 100644 --- a/src/gpu/vertexbuffer.cpp +++ b/src/gpu/vertexbuffer.cpp @@ -194,6 +194,8 @@ void VertexDeclaration::DrawIndexedElements(MeshPrimitive type, int vbase, break; } #else + glFrontFace(GL_CCW); + glEnable(GL_CULL_FACE); # if defined HAVE_GL_2X && !defined __APPLE__ /* FIXME: this has nothing to do here! */ glEnable(GL_ALPHA_TEST);