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 <eric.engestrom@intel.com>
Reviewed-by: Tapani Pälli's avatarTapani Pälli <tapani.palli@intel.com>
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))
piglit_report_result(PIGLIT_FAIL);
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