Fix failing assertion if glGetIntegerv query fails.
authorJarkko Pöyry <jpoyry@google.com>
Sat, 21 Mar 2015 01:00:15 +0000 (18:00 -0700)
committerJarkko Pöyry <jpoyry@google.com>
Sat, 21 Mar 2015 01:00:15 +0000 (18:00 -0700)
Bug: 19869836
Change-Id: I95e316b06a46c2e07f3a5dd2241f601bf9e635af

modules/gles31/functional/es31fIndexedStateQueryTests.cpp

index 3e1f37f..458b5b8 100644 (file)
@@ -327,8 +327,10 @@ BufferStartCase::IterateResult BufferStartCase::iterate (void)
                        gl.glGetIntegerv(GL_SHADER_STORAGE_BUFFER_OFFSET_ALIGNMENT, &offset);
                        GLU_EXPECT_NO_ERROR(gl.glGetError(), "get align");
                }
+               else
+                       DE_ASSERT(false);
 
-               DE_ASSERT(offset != -1);
+               TCU_CHECK(offset >= 0);
 
                {
                        const tcu::ScopedLogSection     section(m_testCtx.getLog(), "Generic", "After setting generic binding point");