mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-12 21:10:42 +00:00
Don't fetch uniform values if we get a -1 location
This commit is contained in:
@@ -812,6 +812,9 @@ static void ForAllProgramUniforms(SerialiserType *ser, CaptureState state,
|
||||
RDCWARN("Couldn't get srcLocation for %s", name.c_str());
|
||||
}
|
||||
|
||||
if(srcLocation == -1)
|
||||
continue;
|
||||
|
||||
// fetch the data into the ProgramUniformValue, with the appropriate method for its type
|
||||
double *dv = uniformVal.data.dval;
|
||||
float *fv = uniformVal.data.fval;
|
||||
|
||||
Reference in New Issue
Block a user