summaryrefslogtreecommitdiff
path: root/Source/Core/Common/GL/GLUtil.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/Common/GL/GLUtil.cpp')
-rw-r--r--Source/Core/Common/GL/GLUtil.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/Common/GL/GLUtil.cpp b/Source/Core/Common/GL/GLUtil.cpp
index 729cc2c25d..ba0f76b9b0 100644
--- a/Source/Core/Common/GL/GLUtil.cpp
+++ b/Source/Core/Common/GL/GLUtil.cpp
@@ -96,11 +96,11 @@ GLuint CompileProgram(const std::string& vertexShader, const std::string& fragme
return programID;
}
-void EnablePrimitiveRestart()
+void EnablePrimitiveRestart(const GLContext* context)
{
constexpr GLuint PRIMITIVE_RESTART_INDEX = 65535;
- if (g_main_gl_context->GetMode() == GLContext::Mode::OpenGLES)
+ if (context->IsGLES())
{
glEnable(GL_PRIMITIVE_RESTART_FIXED_INDEX);
}