From e67a0606ef005434b7e2ad06fb1cb1bd8325a25f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Mon, 7 Oct 2019 19:56:17 +0200 Subject: [PATCH] Vulkan: Always write gl_PointSize, fixes #12364. Remove unnecessary predeclaration of gl_Position. Replaces #12393. The predeclaration used to be required by early versions of glslang but is no longer. Since the GLSL compiler is controlled by us, we don't need to fear incompatibilities. --- GPU/Vulkan/VertexShaderGeneratorVulkan.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPU/Vulkan/VertexShaderGeneratorVulkan.cpp b/GPU/Vulkan/VertexShaderGeneratorVulkan.cpp index 265bcbdd0a..696416201a 100644 --- a/GPU/Vulkan/VertexShaderGeneratorVulkan.cpp +++ b/GPU/Vulkan/VertexShaderGeneratorVulkan.cpp @@ -209,7 +209,6 @@ bool GenerateVulkanGLSLVertexShader(const VShaderID &id, char *buffer) { WRITE(p, " return vec4(v.x, v.y, z * v.w, v.w);\n"); WRITE(p, "}\n\n"); } - WRITE(p, "out gl_PerVertex { vec4 gl_Position; };\n"); if (doBezier || doSpline) { WRITE(p, "struct TessData {\n"); @@ -635,6 +634,7 @@ bool GenerateVulkanGLSLVertexShader(const VShaderID &id, char *buffer) { WRITE(p, " }\n"); } WRITE(p, " gl_Position = outPos;\n"); + WRITE(p, " gl_PointSize = 1.0;\n"); if (gstate_c.Supports(GPU_NEEDS_Z_EQUAL_W_HACK)) { // See comment in GPU_Vulkan.cpp.