Skip to content
Permalink
Browse files

Merge pull request #12396 from hrydgard/vulkan-point-size

Vulkan: Always write gl_PointSize, fixes #12364.
  • Loading branch information...
hrydgard committed Oct 7, 2019
2 parents 13f8730 + e67a060 commit 3bed866c3cf18fd988f8e539e4cd9146b4e8b060
Showing with 1 addition and 1 deletion.
  1. +1 −1 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.

0 comments on commit 3bed866

Please sign in to comment.
You can’t perform that action at this time.