From 799f3a806bb6a867df44be717fd6170a8c584f44 Mon Sep 17 00:00:00 2001 From: baldurk Date: Mon, 15 Nov 2021 13:32:10 +0000 Subject: [PATCH] Add tests of multi-bind GL functions that take NULL arrays --- util/test/demos/gl/gl_parameter_zoo.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/util/test/demos/gl/gl_parameter_zoo.cpp b/util/test/demos/gl/gl_parameter_zoo.cpp index f6f58e907..da38430d7 100644 --- a/util/test/demos/gl/gl_parameter_zoo.cpp +++ b/util/test/demos/gl/gl_parameter_zoo.cpp @@ -122,6 +122,9 @@ void main() return 5; } + GLuint trashvao = MakeVAO(); + glBindVertexArray(trashvao); + GLuint vao = MakeVAO(); glBindVertexArray(vao); @@ -196,6 +199,14 @@ void main() glBindBuffersBase(GL_SHADER_STORAGE_BUFFER, 0, 4, NULL); + glBindVertexArray(trashvao); + glBindVertexBuffers(0, 4, NULL, NULL, NULL); + glBindTextures(0, 10, NULL); + glBindSamplers(0, 10, NULL); + glBindImageTextures(0, 4, NULL); + + glBindVertexArray(vao); + float col[] = {1.0f, 0.0f, 1.0f, 1.0f}; glClearBufferfv(GL_COLOR, 0, col);