gl: no GL_PRIMITIVE_RESTART and glPrimitiveRestartIndex in GLES

This commit is contained in:
Flyinghead 2022-12-13 23:42:11 +01:00
parent 1765e50703
commit 4d3de39c64
1 changed files with 2 additions and 0 deletions

View File

@ -1247,10 +1247,12 @@ bool OpenGLRenderer::renderFrame(int width, int height)
#ifndef GLES2
if (gl.prim_restart_fixed_supported)
glEnable(GL_PRIMITIVE_RESTART_FIXED_INDEX);
#ifndef GLES
else if (gl.prim_restart_supported) {
glEnable(GL_PRIMITIVE_RESTART);
glPrimitiveRestartIndex(-1);
}
#endif
#endif
//setup render target first
if (is_rtt)