Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[GLES3] Enable support for primitive restart.
  • Loading branch information
Sonicadvance1 committed Sep 16, 2013
1 parent 9b9526f commit 7397867
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Source/Plugins/Plugin_VideoOGL/Src/Render.cpp
Expand Up @@ -373,7 +373,7 @@ Renderer::Renderer()
WARN_LOG(VIDEO, "Running the OpenGL ES 3 backend!");
g_Config.backend_info.bSupportsDualSourceBlend = false;
g_Config.backend_info.bSupportsGLSLUBO = true;
g_Config.backend_info.bSupportsPrimitiveRestart = false;
g_Config.backend_info.bSupportsPrimitiveRestart = true;
g_Config.backend_info.bSupportsEarlyZ = false;

g_ogl_config.bSupportsGLSLCache = true;
Expand Down Expand Up @@ -603,9 +603,11 @@ Renderer::Renderer()
glBlendColor(0, 0, 0, 0.5f);
glClearDepthf(1.0f);

#ifndef USE_GLES3
if(g_ActiveConfig.backend_info.bSupportsPrimitiveRestart)
{
#ifdef USE_GLES3
glEnable(GL_PRIMITIVE_RESTART_FIXED_INDEX);
#else
if(g_ogl_config.bSupportOGL31)
{
glEnable(GL_PRIMITIVE_RESTART);
Expand All @@ -616,8 +618,8 @@ Renderer::Renderer()
glEnableClientState(GL_PRIMITIVE_RESTART_NV);
glPrimitiveRestartIndexNV(65535);
}
}
#endif
}
UpdateActiveConfig();
}

Expand Down

0 comments on commit 7397867

Please sign in to comment.