Check correct error for exceeding texture limit
This test should check for GL_INVALID_OPERATION instead of GL_INVALID_VALUE.
Affects:
dEQP-GLES31.functional.debug.negative_coverage.get_error.compute.exceed_texture_image_units_limit
Component: AOSP
VK-GL-CTS Issue: 340
Change-Id: I609f6fcb876978e715c52fd5b5c4144891dbaacf
diff --git a/modules/gles31/functional/es31fNegativeComputeTests.cpp b/modules/gles31/functional/es31fNegativeComputeTests.cpp
index 8fc9f10..eb2e0ec 100644
--- a/modules/gles31/functional/es31fNegativeComputeTests.cpp
+++ b/modules/gles31/functional/es31fNegativeComputeTests.cpp
@@ -248,7 +248,7 @@
ctx.beginSection("GL_INVALID_OPERATION error is generated if the sum of the number of active samplers for each active program exceeds the maximum number of texture image units allowed");
ctx.glDispatchCompute(1, 1, 1);
- ctx.expectError(GL_INVALID_VALUE);
+ ctx.expectError(GL_INVALID_OPERATION);
ctx.endSection();
}
}