Check correct error for exceeding texture limit
authorJames Helferty <jhelferty@nvidia.com>
Thu, 30 Mar 2017 19:15:59 +0000 (15:15 -0400)
committerMika Isojärvi <misojarvi@google.com>
Wed, 2 Aug 2017 17:10:30 +0000 (10:10 -0700)
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 8fc9f10..eb2e0ec 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();
        }
 }