X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=modules%2Fgles31%2Ffunctional%2Fes31fNegativeAdvancedBlendEquationTests.cpp;h=511bb5c9c3e81e96fe92440d0aa8e7020f9765d9;hb=922824212966c338050b5fa0427bc6834c5cb5f9;hp=96c0b7f2b5d651ca0be67aac1f5f0848cd20544c;hpb=072537b19766332a542b8b66a67a754f22967767;p=platform%2Fupstream%2FVK-GL-CTS.git diff --git a/modules/gles31/functional/es31fNegativeAdvancedBlendEquationTests.cpp b/modules/gles31/functional/es31fNegativeAdvancedBlendEquationTests.cpp index 96c0b7f..511bb5c 100644 --- a/modules/gles31/functional/es31fNegativeAdvancedBlendEquationTests.cpp +++ b/modules/gles31/functional/es31fNegativeAdvancedBlendEquationTests.cpp @@ -224,7 +224,7 @@ void attachment_advanced_equation (NegativeTestContext& ctx) ctx.expectError(GL_NO_ERROR); ctx.glCheckFramebufferStatus(GL_FRAMEBUFFER); - ctx.beginSection("GL_INVALID_OPERATION is generated if blending is enabled, advanced equations are used, and the draw buffer for other color outputs is not NONE."); + ctx.beginSection("GL_INVALID_OPERATION is generated if blending is enabled, advanced equations are used, and the draw buffer for other color outputs is not NONE unless NVX_blend_equation_advanced_multi_draw_buffers is supported."); for (int ndx = 0; ndx < DE_LENGTH_OF_ARRAY(s_equations); ++ndx) { glu::ShaderProgram program(ctx.getRenderContext(), generateProgramSources(ctx, s_equations[ndx])); @@ -237,7 +237,10 @@ void attachment_advanced_equation (NegativeTestContext& ctx) ctx.expectError(GL_NO_ERROR); ctx.glBlendEquation(getEquation(s_equations[ndx])); ctx.glDrawElements(GL_TRIANGLES, 0, GL_UNSIGNED_INT, 0); - ctx.expectError(GL_INVALID_OPERATION); + if (ctx.isExtensionSupported("GL_NVX_blend_equation_advanced_multi_draw_buffers")) + ctx.expectError(GL_NO_ERROR); + else + ctx.expectError(GL_INVALID_OPERATION); } ctx.endSection();