Skip to content

Commit 31d2db6

Browse files
committed
OpenGL: Add explicit/matching qualifiers in output shader interface
fixes issues with old intel drivers
1 parent ebb5ab5 commit 31d2db6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Cafe/HW/Latte/Renderer/RendererOuputShader.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,8 @@ std::string RendererOutputShader::GetOpenGlVertexSource(bool render_upside_down)
187187
// vertex shader
188188
std::ostringstream vertex_source;
189189
vertex_source <<
190-
R"(#version 400
191-
out vec2 passUV;
190+
R"(#version 420
191+
layout(location = 0) smooth out vec2 passUV;
192192
193193
out gl_PerVertex
194194
{
@@ -297,7 +297,7 @@ uniform vec2 nativeResolution;
297297
uniform vec2 outputResolution;
298298
#endif
299299
300-
layout(location = 0) in vec2 passUV;
300+
layout(location = 0) smooth in vec2 passUV;
301301
layout(binding = 0) uniform sampler2D textureSrc;
302302
layout(location = 0) out vec4 colorOut0;
303303
)" + shaderSrc;

0 commit comments

Comments
 (0)