aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPyry Haulos <phaulos@google.com>2017-03-03 08:44:08 -0800
committerPyry Haulos <phaulos@google.com>2017-03-03 08:44:08 -0800
commitab0a5da69ee6c41ff7b752c14761cd991cee87cf (patch)
tree34862c3625230300fc78f533fcaf48d2cd6840a6
parent2c74c73891c545cfe4d8462a2d865087efd879db (diff)
downloaddeqp-ab0a5da69ee6c41ff7b752c14761cd991cee87cf.tar.gz
Fix "null" ID in sRGB decode tests
Use 0 as "null" GL object ID as -1 is potentially valid ID. Change-Id: I95f9f0c300d5b6e95c0c7c81e29fd28ac9ca3b82
-rw-r--r--modules/gles31/functional/es31fSRGBDecodeTests.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/modules/gles31/functional/es31fSRGBDecodeTests.cpp b/modules/gles31/functional/es31fSRGBDecodeTests.cpp
index 27b96448f..bb5c7bc6f 100644
--- a/modules/gles31/functional/es31fSRGBDecodeTests.cpp
+++ b/modules/gles31/functional/es31fSRGBDecodeTests.cpp
@@ -977,8 +977,8 @@ SRGBTestCase::SRGBTestCase (Context& context, const char* name, const char* desc
: TestCase (context, name, description)
, m_epsilonError (EpsilonError::CPU)
, m_resultTextureFormat (tcu::TextureFormat(tcu::TextureFormat::sRGBA, tcu::TextureFormat::UNORM_INT8))
- , m_vaoID ((glw::GLuint)-1)
- , m_vertexDataID ((glw::GLuint)-1)
+ , m_vaoID (0)
+ , m_vertexDataID (0)
, m_samplingGroup (SHADERSAMPLINGGROUP_TEXTURE)
, m_internalFormat (internalFormat)
{
@@ -1029,16 +1029,16 @@ void SRGBTestCase::deinit (void)
}
m_samplerList.clear();
- if (m_vaoID != (glw::GLuint)-1)
+ if (m_vaoID != 0)
{
gl.deleteVertexArrays(1, &m_vaoID);
- m_vaoID = (glw::GLuint)-1;
+ m_vaoID = 0;
}
- if (m_vertexDataID != (glw::GLuint)-1)
+ if (m_vertexDataID != 0)
{
gl.deleteBuffers(1, &m_vertexDataID);
- m_vertexDataID = (glw::GLuint)-1;
+ m_vertexDataID = 0;
}
}
@@ -1408,7 +1408,7 @@ void SRGBTestCase::initVertexData (void)
-1.0f, -1.0f, 0.0f, 0.0f, 0.0f // bottom left corner
};
- DE_ASSERT(m_vaoID == (glw::GLuint)-1);
+ DE_ASSERT(m_vaoID == 0);
gl.genVertexArrays(1, &m_vaoID);
gl.bindVertexArray(m_vaoID);