mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
GLContext: Remove global context pointer
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user