Emulate ARB_program_interface_query on desktop if it's not available

This commit is contained in:
baldurk
2018-09-05 09:58:16 +01:00
parent a4e125f961
commit 29d8d756ca
+7 -4
View File
@@ -2065,6 +2065,13 @@ void GLDispatchTable::EmulateRequiredExtensions()
EMULATE_FUNC(glGetInternalformativ);
}
if(!HasExt[ARB_program_interface_query])
{
EMULATE_FUNC(glGetProgramInterfaceiv);
EMULATE_FUNC(glGetProgramResourceiv);
EMULATE_FUNC(glGetProgramResourceName);
}
// APIs that are not available at all in GLES.
if(IsGLES)
{
@@ -2075,10 +2082,6 @@ void GLDispatchTable::EmulateRequiredExtensions()
{
EMULATE_FUNC(glGetTexLevelParameteriv);
EMULATE_FUNC(glGetTexLevelParameterfv);
EMULATE_FUNC(glGetProgramInterfaceiv);
EMULATE_FUNC(glGetProgramResourceiv);
EMULATE_FUNC(glGetProgramResourceName);
}
if(GLCoreVersion < 32)