From: Slawomir Cygan Date: Wed, 10 May 2017 17:09:07 +0000 (+0200) Subject: KHR-GL44.khr_debug: create texture before calling glObjectLabel X-Git-Tag: upstream/0.1.0~297 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=57202d6ae41aa0ad5d48e4b2189365f12365a4b7;p=platform%2Fupstream%2FVK-GL-CTS.git KHR-GL44.khr_debug: create texture before calling glObjectLabel 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 --- diff --git a/external/openglcts/modules/gl/gl4cKHRDebugTests.cpp b/external/openglcts/modules/gl/gl4cKHRDebugTests.cpp index f1108a8..570dc2c 100644 --- a/external/openglcts/modules/gl/gl4cKHRDebugTests.cpp +++ b/external/openglcts/modules/gl/gl4cKHRDebugTests.cpp @@ -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 {