From: Mika Isojärvi Date: Mon, 6 Apr 2015 19:11:55 +0000 (-0700) Subject: Check EXT_sparse_texture in get_internalformativ tests. X-Git-Tag: upstream/0.1.0~1781^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a5387bed615e83cb1770067dbdd7cde0e50ae006;p=platform%2Fupstream%2FVK-GL-CTS.git Check EXT_sparse_texture in get_internalformativ tests. Check extension GL_EXT_sparse_texture before assuming that GL_TEXTURE_2D is invalid target. Bug: 20005726 Change-Id: I200ddea79c42e1734cae6b4bea4f358bda863112 --- diff --git a/modules/gles31/functional/es31fNegativeStateApiTests.cpp b/modules/gles31/functional/es31fNegativeStateApiTests.cpp index cedbe0b..761259f 100644 --- a/modules/gles31/functional/es31fNegativeStateApiTests.cpp +++ b/modules/gles31/functional/es31fNegativeStateApiTests.cpp @@ -987,8 +987,13 @@ void get_internalformativ (NegativeTestContext& ctx) ctx.expectError (GL_INVALID_ENUM); ctx.glGetInternalformativ (GL_FRAMEBUFFER, GL_RGBA8, GL_NUM_SAMPLE_COUNTS, 16, ¶ms[0]); ctx.expectError (GL_INVALID_ENUM); - ctx.glGetInternalformativ (GL_TEXTURE_2D, GL_RGBA8, GL_NUM_SAMPLE_COUNTS, 16, ¶ms[0]); - ctx.expectError (GL_INVALID_ENUM); + + if (!ctx.getContextInfo().isExtensionSupported("GL_EXT_sparse_texture")) + { + ctx.glGetInternalformativ (GL_TEXTURE_2D, GL_RGBA8, GL_NUM_SAMPLE_COUNTS, 16, ¶ms[0]); + ctx.expectError (GL_INVALID_ENUM); + } + ctx.endSection(); }