From 9b61e11eed82eb438dc209afdaf22158aea3fb39 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Tue, 5 Feb 2013 21:31:23 +0000 Subject: [PATCH] gpu: disable glPolygonMode calls on OpenGL ES. --- src/video.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/video.cpp b/src/video.cpp index 2643be76..b49dea27 100644 --- a/src/video.cpp +++ b/src/video.cpp @@ -249,6 +249,8 @@ void Video::SetDebugRenderMode(DebugRenderMode d) case DebugRenderMode::UV: { #if defined USE_D3D9 || defined _XBOX +#elif defined HAVE_GLES_2X + glEnable(GL_CULL_FACE); #else glEnable(GL_CULL_FACE); glPolygonMode(GL_FRONT_AND_BACK, GL_FILL); @@ -275,6 +277,7 @@ void Video::SetDebugRenderMode(DebugRenderMode d) #endif } #if defined USE_D3D9 || defined _XBOX +#elif defined HAVE_GLES_2X #else glPolygonMode(GL_FRONT_AND_BACK, GL_LINE); #endif