From 144c39ef8aae15529e60fea0e0583bc46dd794c6 Mon Sep 17 00:00:00 2001 From: Alexander Galazin Date: Thu, 31 Dec 2020 09:41:16 +0100 Subject: [PATCH] Support GL 4.5 in the gl_HelperInvocation tests Affects: dEQP-GLES31.functional.shaders.helper_invocation.* dEQP-GL45.functional.shaders.helper_invocation.* Components: AOSP Change-Id: I425548e980cfefa5e8da694ce55aa42c64bde96c --- modules/gles31/functional/es31fShaderHelperInvocationTests.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gles31/functional/es31fShaderHelperInvocationTests.cpp b/modules/gles31/functional/es31fShaderHelperInvocationTests.cpp index a173d51..b51ca39 100644 --- a/modules/gles31/functional/es31fShaderHelperInvocationTests.cpp +++ b/modules/gles31/functional/es31fShaderHelperInvocationTests.cpp @@ -178,7 +178,7 @@ static void drawRandomPrimitives (const glu::RenderContext& renderCtx, deUint32 // Special state for certain primitives if (primType == PRIMITIVETYPE_POINT || primType == PRIMITIVETYPE_WIDE_POINT) { - const Vec2 range = getRange(gl, GL_ALIASED_POINT_SIZE_RANGE); + const Vec2 range = getRange(gl, glu::isContextTypeES(renderCtx.getType()) ? GL_ALIASED_POINT_SIZE_RANGE : GL_SMOOTH_POINT_SIZE_RANGE); const bool isWidePoint = primType == PRIMITIVETYPE_WIDE_POINT; const float pointSize = isWidePoint ? de::min(rnd->getFloat(minPointSize, maxPointSize), range.y()) : 1.0f; const int pointSizeLoc = gl.getUniformLocation(program, "u_pointSize"); -- 2.7.4