mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-24 15:36:33 +00:00
Emulate ARB_program_interface_query on desktop if it's not available
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user