Don't fetch uniform values if we get a -1 location

This commit is contained in:
baldurk
2019-09-05 16:58:55 +01:00
parent c48578fdd9
commit 0df24b2d7d
@@ -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;