mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-14 00:09:24 +01:00
OGL: Set shared context state up to match main context
Has a better chance of avoiding recompiling if so.
This commit is contained in:
parent
6553cf8bb1
commit
356ebdf509
@ -852,6 +852,18 @@ bool SharedContextAsyncShaderCompiler::WorkerThreadInitWorkerThread(void* param)
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
s_is_shared_context = true;
|
s_is_shared_context = true;
|
||||||
|
|
||||||
|
// Make the state match the main context to have a better chance of avoiding recompiles.
|
||||||
|
if (!context->IsGLES())
|
||||||
|
glEnable(GL_PROGRAM_POINT_SIZE);
|
||||||
|
if (g_ActiveConfig.backend_info.bSupportsClipControl)
|
||||||
|
glClipControl(GL_LOWER_LEFT, GL_ZERO_TO_ONE);
|
||||||
|
if (g_ActiveConfig.backend_info.bSupportsDepthClamp)
|
||||||
|
{
|
||||||
|
glEnable(GL_CLIP_DISTANCE0);
|
||||||
|
glEnable(GL_CLIP_DISTANCE1);
|
||||||
|
glEnable(GL_DEPTH_CLAMP);
|
||||||
|
}
|
||||||
if (g_ActiveConfig.backend_info.bSupportsPrimitiveRestart)
|
if (g_ActiveConfig.backend_info.bSupportsPrimitiveRestart)
|
||||||
GLUtil::EnablePrimitiveRestart(context);
|
GLUtil::EnablePrimitiveRestart(context);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user