From 012f21ddfb2c86a2960edd65a3f0ea8f1fcd7832 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jarkko=20P=C3=B6yry?= Date: Fri, 20 Mar 2015 18:00:15 -0700 Subject: [PATCH] Fix failing assertion if glGetIntegerv query fails. Bug: 19869836 Change-Id: I95e316b06a46c2e07f3a5dd2241f601bf9e635af --- modules/gles31/functional/es31fIndexedStateQueryTests.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/gles31/functional/es31fIndexedStateQueryTests.cpp b/modules/gles31/functional/es31fIndexedStateQueryTests.cpp index 3e1f37f..458b5b8 100644 --- a/modules/gles31/functional/es31fIndexedStateQueryTests.cpp +++ b/modules/gles31/functional/es31fIndexedStateQueryTests.cpp @@ -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"); -- 2.7.4