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;
|
||||
|
||||
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)
|
||||
GLUtil::EnablePrimitiveRestart(context);
|
||||
|
||||
|
|
Loading…
Reference in New Issue