Python GPU Shader: Fix crash when uniform is not found.

Error in string format.
This commit is contained in:
2019-06-05 08:44:24 -03:00
parent 8db6b1e2dd
commit f2da21e052

View File

@@ -83,7 +83,7 @@ static int bpygpu_uniform_location_get(GPUShader *shader,
int uniform = GPU_shader_get_uniform_ensure(shader, name);
if (uniform == -1) {
PyErr_Format(PyExc_ValueError, "%s: uniform %.32s %.32s not found", error_prefix, name);
PyErr_Format(PyExc_ValueError, "%s: uniform %.32s not found", error_prefix, name);
}
return uniform;