[Piglit] [PATCH 1/2] arb_shader_atomic_counters: get log from the right shader
Ilia Mirkin
imirkin at alum.mit.edu
Mon Jun 16 22:06:51 PDT 2014
---
Not sure why this doesn't use the generic piglit functions for this, but this
fixes log retrieval on nvidia blob.
tests/spec/arb_shader_atomic_counters/common.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/spec/arb_shader_atomic_counters/common.c b/tests/spec/arb_shader_atomic_counters/common.c
index 34fee32..7547d5d 100644
--- a/tests/spec/arb_shader_atomic_counters/common.c
+++ b/tests/spec/arb_shader_atomic_counters/common.c
@@ -71,9 +71,9 @@ atomic_counters_compile(GLuint prog, GLuint stage, const char *src)
if (status) {
glAttachShader(prog, shader);
} else {
- glGetShaderiv(prog, GL_INFO_LOG_LENGTH, &log_size);
+ glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &log_size);
log = malloc(log_size);
- glGetShaderInfoLog(prog, log_size, NULL, log);
+ glGetShaderInfoLog(shader, log_size, NULL, log);
printf("Failed to compile shader: %s\n", log);
printf("source:\n%s", src);
--
1.8.5.5
More information about the Piglit
mailing list