mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-26 08:26:50 +00:00
Fix potential crash if shader reflection is NULL
This commit is contained in:
@@ -1913,6 +1913,12 @@ void MakeShaderReflection(const GLHookSet &gl, GLenum shadType, GLuint sepProg,
|
||||
void GetBindpointMapping(const GLHookSet &gl, GLuint curProg, int shadIdx, ShaderReflection *refl,
|
||||
ShaderBindpointMapping &mapping)
|
||||
{
|
||||
if(!refl)
|
||||
{
|
||||
mapping = ShaderBindpointMapping();
|
||||
return;
|
||||
}
|
||||
|
||||
// in case of bugs, we readback into this array instead of
|
||||
GLint dummyReadback[32];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user