[Piglit] [PATCH 1/2] shader_runner: fix error checking on MapBuffer gles workaround

Alejandro PiƱeiro apinheiro at igalia.com
Thu Apr 11 09:14:41 UTC 2019


---
 tests/shaders/shader_runner_gles_workarounds.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/shaders/shader_runner_gles_workarounds.h b/tests/shaders/shader_runner_gles_workarounds.h
index d3ab77506..77956f6b9 100644
--- a/tests/shaders/shader_runner_gles_workarounds.h
+++ b/tests/shaders/shader_runner_gles_workarounds.h
@@ -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);
-- 
2.19.1



More information about the Piglit mailing list