From e15df3a75c15b78241079a5104ed3f697b2ef701 Mon Sep 17 00:00:00 2001 From: baldurk Date: Fri, 17 Jun 2022 16:21:59 +0100 Subject: [PATCH] Test that glBindProgramPipeline(0) generates no errors --- util/test/demos/gl/gl_parameter_zoo.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/util/test/demos/gl/gl_parameter_zoo.cpp b/util/test/demos/gl/gl_parameter_zoo.cpp index 5d529d525..3f14c752f 100644 --- a/util/test/demos/gl/gl_parameter_zoo.cpp +++ b/util/test/demos/gl/gl_parameter_zoo.cpp @@ -198,6 +198,16 @@ void main() glPixelStorei(GL_PACK_SKIP_ROWS, 33); glPixelStorei(GL_PACK_ALIGNMENT, 8); + for(int i = 0; i < 100; i++) + glGetError(); + + glBindProgramPipeline(0); + + if(glGetError() != GL_NONE) + { + TEST_ERROR("Got an error from glBindProgramPipeline"); + } + glViewport(0, 0, GLsizei(screenWidth), GLsizei(screenHeight)); glBindBuffersBase(GL_SHADER_STORAGE_BUFFER, 0, 4, NULL);