Browse Source

gpu: disable glPolygonMode calls on OpenGL ES.

legacy
Sam Hocevar sam 11 years ago
parent
commit
9b61e11eed
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      src/video.cpp

+ 3
- 0
src/video.cpp View File

@@ -249,6 +249,8 @@ void Video::SetDebugRenderMode(DebugRenderMode d)
case DebugRenderMode::UV: case DebugRenderMode::UV:
{ {
#if defined USE_D3D9 || defined _XBOX #if defined USE_D3D9 || defined _XBOX
#elif defined HAVE_GLES_2X
glEnable(GL_CULL_FACE);
#else #else
glEnable(GL_CULL_FACE); glEnable(GL_CULL_FACE);
glPolygonMode(GL_FRONT_AND_BACK, GL_FILL); glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
@@ -275,6 +277,7 @@ void Video::SetDebugRenderMode(DebugRenderMode d)
#endif #endif
} }
#if defined USE_D3D9 || defined _XBOX #if defined USE_D3D9 || defined _XBOX
#elif defined HAVE_GLES_2X
#else #else
glPolygonMode(GL_FRONT_AND_BACK, GL_LINE); glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
#endif #endif


Loading…
Cancel
Save