mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 19:58:53 +00:00
GLContext: Remove global context pointer
This commit is contained in:
parent
eb284b5d66
commit
dcdd02d646
19 changed files with 183 additions and 150 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue