From: Jeannot Breton Date: Wed, 24 May 2017 20:27:14 +0000 (-0500) Subject: Return an error if the pagesize index is invalid X-Git-Tag: upstream/0.1.0~286 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=57289d9923dc75afaba7329a58d958e803d94207;p=platform%2Fupstream%2FVK-GL-CTS.git Return an error if the pagesize index is invalid In verifyTexStorageVirtualPageSizeIndexError, the test call texStorage with a VIRTUAL_PAGE_SIZE_INDEX texture parameter set to NUM_VIRTUAL_PAGE_SIZES + 1. However the verifyError after the texStorage expect GL_NO_ERROR. It should be GL_INVALID_OPERATION Affects: KHR-GL45.sparse_texture_tests.* Components: OpenGL VK-GL-CTS issue: 436 Change-Id: I43d02dcbee4bbe2c81feb4a17e9fde7386375656 --- diff --git a/external/openglcts/modules/gl/gl4cSparseTextureTests.cpp b/external/openglcts/modules/gl/gl4cSparseTextureTests.cpp index 8cd34925e..79b7b97d2 100644 --- a/external/openglcts/modules/gl/gl4cSparseTextureTests.cpp +++ b/external/openglcts/modules/gl/gl4cSparseTextureTests.cpp @@ -1358,7 +1358,7 @@ bool SparseTextureAllocationTestCase::verifyTexStorageVirtualPageSizeIndexError( depth = SparseTextureUtils::getTargetDepth(target); Texture::Storage(gl, target, 1, format, 8, 8, depth); - if (!SparseTextureUtils::verifyError(mLog, "TexStorage", gl.getError(), GL_NO_ERROR)) + if (!SparseTextureUtils::verifyError(mLog, "TexStorage", gl.getError(), GL_INVALID_OPERATION)) { Texture::Delete(gl, texture); return false;