Enable GL_CULL_FACE in OpenGL samples.

Without it, the hidden faces are shown resulting in wrong display of both the
cube and the penguin, at least with Mesa (but it also seems to be the correct
thing to do according to OpenGL documentation).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72433 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2012-09-08 15:46:27 +00:00
parent 616ae1e843
commit 948f48e725
2 changed files with 2 additions and 1 deletions

View File

@@ -276,7 +276,7 @@ void TestGLCanvas::InitGL()
static const GLfloat light1_color[4] = { 0.4f, 0.4f, 1.0f, 1.0f };
/* remove back faces */
glDisable(GL_CULL_FACE);
glEnable(GL_CULL_FACE);
glEnable(GL_DEPTH_TEST);
/* speedups */