KHR-GL44.khr_debug: create texture before calling glObjectLabel
authorSlawomir Cygan <slawomir.cygan@intel.com>
Wed, 10 May 2017 17:09:07 +0000 (19:09 +0200)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Fri, 19 May 2017 16:29:09 +0000 (12:29 -0400)
The test does not call glBindTexture after glGenTextures, so
texture object is not created.

This causes later glObjectLabel GL error checks to fail due to wrong
 GL error codes.

Affects: KHR-GL44.khr_debug.*
Components: OpenGL
VK-GL-CTS Issue: 410

Change-Id: I9036264b2c549c58a5a80fb1ec89e1fdaae4b6b7

external/openglcts/modules/gl/gl4cKHRDebugTests.cpp

index f1108a8..570dc2c 100644 (file)
@@ -493,6 +493,8 @@ tcu::TestNode::IterateResult APIErrorsTest::iterate()
                GLuint invalid_id = 1;
                m_gl->genTextures(1, &texture_id);
                GLU_EXPECT_NO_ERROR(m_gl->getError(), "GenTextures");
+               m_gl->bindTexture(GL_TEXTURE_BUFFER, texture_id);
+               GLU_EXPECT_NO_ERROR(m_gl->getError(), "BindTexture");
 
                try
                {