Commit 835f9b1a authored by Alejandro Piñeiro's avatar Alejandro Piñeiro

shader_runner: fix error checking on MapBuffer gles workaround

Reviewed-by: Eric Engestrom's avatarEric Engestrom <>
Reviewed-by: Tapani Pälli's avatarTapani Pälli <>
parent 292e993d
......@@ -79,7 +79,7 @@ glMapBuffer(GLenum target, GLbitfield access)
GLsizeiptr length = 0;
glGetBufferParameteri64v(target, GL_BUFFER_SIZE, (GLint64*) &length);
if (piglit_check_gl_error(GL_NO_ERROR))
if (!piglit_check_gl_error(GL_NO_ERROR))
return glMapBufferRange(target, 0, length, access);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment