Ensure expected error in copytexsubimage2d_incomplete_framebuffer
authorAlexander Galazin <alexander.galazin@arm.com>
Wed, 19 Apr 2017 06:33:39 +0000 (08:33 +0200)
committerPyry Haulos <phaulos@google.com>
Wed, 19 Apr 2017 21:36:27 +0000 (14:36 -0700)
commit3809b1c7f122b771f0f0075c8733ae0c695a3dff
tree9f764d3495f714c987f98c28681d26bca7a4e26c
parenta542a3ad5ba5e03407fcdbce6469bd5a1aaf2b86
Ensure expected error in copytexsubimage2d_incomplete_framebuffer

The GLES2 version of the copytexsubimage2d_incomplete_framebuffer test could
potentially throw INVALID_OPERATION instead of expected INVALID_FRAMEBUFFER_OPERATION
due to the cubemap texture not being defined by a previous TexImage2D.
This change re-uses the GLES3 version of the same test and ensures that
INVALID_FRAMEBUFFER_OPERATION is thrown.

Affects:
dEQP-GLES2.functional.negative_api.texture.copytexsubimage2d_incomplete_framebuffer

Change-Id: I7b3f770ff31c73d770a53f6b6bdae3ea4a37b63a
Components: AOSP
Google bug: 37497541

(cherry picked from commit 89bb39d24906bebd4e506f534e7336ffffec780b)
modules/gles2/functional/es2fNegativeTextureApiTests.cpp