Check correct error for exceeding texture limit
authorJames Helferty <jhelferty@nvidia.com>
Thu, 30 Mar 2017 19:15:59 +0000 (15:15 -0400)
committerPyry Haulos <phaulos@google.com>
Mon, 3 Apr 2017 16:44:16 +0000 (12:44 -0400)
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

modules/gles31/functional/es31fNegativeComputeTests.cpp

index c0c36bc..a12f54a 100644 (file)
@@ -248,7 +248,7 @@ void exceed_texture_image_units_limit (NegativeTestContext& ctx)
 
                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();
        }
 }