From 2fef4c4a9c7d3afdb98d613a59d4b93a169ab841 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Tue, 1 Dec 2020 23:51:55 +0100 Subject: [PATCH] Fix GPU driver test screen --- UI/GPUDriverTestScreen.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/UI/GPUDriverTestScreen.cpp b/UI/GPUDriverTestScreen.cpp index 297d1e55e8..d8387b84fa 100644 --- a/UI/GPUDriverTestScreen.cpp +++ b/UI/GPUDriverTestScreen.cpp @@ -18,7 +18,11 @@ static const std::vector fsDiscard = { varying vec2 oTexCoord0; uniform sampler2D Sampler0; void main() { + #if __VERSION__ >= 130 + vec4 color = texture(Sampler0, oTexCoord0) * oColor0; + #else vec4 color = texture2D(Sampler0, oTexCoord0) * oColor0; + #endif if (color.a <= 0.0) discard; gl_FragColor = color;