mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-26 07:45:33 +01:00
[GLES3] Enable support for primitive restart.
This commit is contained in:
parent
9b9526fba2
commit
7397867b21
@ -373,7 +373,7 @@ Renderer::Renderer()
|
|||||||
WARN_LOG(VIDEO, "Running the OpenGL ES 3 backend!");
|
WARN_LOG(VIDEO, "Running the OpenGL ES 3 backend!");
|
||||||
g_Config.backend_info.bSupportsDualSourceBlend = false;
|
g_Config.backend_info.bSupportsDualSourceBlend = false;
|
||||||
g_Config.backend_info.bSupportsGLSLUBO = true;
|
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_Config.backend_info.bSupportsEarlyZ = false;
|
||||||
|
|
||||||
g_ogl_config.bSupportsGLSLCache = true;
|
g_ogl_config.bSupportsGLSLCache = true;
|
||||||
@ -603,9 +603,11 @@ Renderer::Renderer()
|
|||||||
glBlendColor(0, 0, 0, 0.5f);
|
glBlendColor(0, 0, 0, 0.5f);
|
||||||
glClearDepthf(1.0f);
|
glClearDepthf(1.0f);
|
||||||
|
|
||||||
#ifndef USE_GLES3
|
|
||||||
if(g_ActiveConfig.backend_info.bSupportsPrimitiveRestart)
|
if(g_ActiveConfig.backend_info.bSupportsPrimitiveRestart)
|
||||||
{
|
{
|
||||||
|
#ifdef USE_GLES3
|
||||||
|
glEnable(GL_PRIMITIVE_RESTART_FIXED_INDEX);
|
||||||
|
#else
|
||||||
if(g_ogl_config.bSupportOGL31)
|
if(g_ogl_config.bSupportOGL31)
|
||||||
{
|
{
|
||||||
glEnable(GL_PRIMITIVE_RESTART);
|
glEnable(GL_PRIMITIVE_RESTART);
|
||||||
@ -616,8 +618,8 @@ Renderer::Renderer()
|
|||||||
glEnableClientState(GL_PRIMITIVE_RESTART_NV);
|
glEnableClientState(GL_PRIMITIVE_RESTART_NV);
|
||||||
glPrimitiveRestartIndexNV(65535);
|
glPrimitiveRestartIndexNV(65535);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
UpdateActiveConfig();
|
UpdateActiveConfig();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user