mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-08 23:13:12 +00:00
Use the right name length value!
This commit is contained in:
1 parent
279c43c352
commit
3d09b6ad28
1 file changed
+1
-1
@@ -504,7 +504,7 @@ void MakeShaderReflection(const GLHookSet &gl, GLenum shadType, GLuint sepProg,
|
||||
|
||||
var.type.descriptor.rowMajorStorage = (values[6] >= 0);
|
||||
|
||||
create_array_uninit(var.name, values[0]);
|
||||
create_array_uninit(var.name, values[1]);
|
||||
gl.glGetProgramResourceName(sepProg, eGL_UNIFORM, u, values[0], NULL, var.name.elems);
|
||||
var.name.count--; // trim off trailing null
|
||||
|
||||
|
||||
Reference in new issue
Block a user