瀏覽代碼

gpu: disable glPolygonMode calls on OpenGL ES.

legacy
Sam Hocevar sam 11 年之前
父節點
當前提交
9b61e11eed
共有 1 個檔案被更改,包括 3 行新增0 行删除
  1. +3
    -0
      src/video.cpp

+ 3
- 0
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


Loading…
取消
儲存