ref: eaae225c70dc111c59a621a97b90f7758b058876
parent: a69a4cd608e4e99c548aa24183df8966eaa7d8c9
author: Clownacy <Clownacy@users.noreply.github.com>
date: Tue Aug 20 08:41:32 EDT 2019
Remove deprecated GLSL function usage
--- a/src/Backends/Rendering/OpenGL3.cpp
+++ b/src/Backends/Rendering/OpenGL3.cpp
@@ -106,7 +106,7 @@
out vec4 fragment; \
void main() \
{ \
- fragment = texture2D(tex, texture_coordinates); \
+ fragment = texture(tex, texture_coordinates); \
} \
";
@@ -117,7 +117,7 @@
out vec4 fragment; \
void main() \
{ \
- vec4 colour = texture2D(tex, texture_coordinates); \
+ vec4 colour = texture(tex, texture_coordinates); \
\
if (colour.xyz == vec3(0.0f, 0.0f, 0.0f)) \
discard; \
@@ -144,7 +144,7 @@
out vec4 fragment; \
void main() \
{ \
- fragment = colour * vec4(1.0, 1.0, 1.0, texture2D(tex, texture_coordinates).r); \
+ fragment = colour * vec4(1.0, 1.0, 1.0, texture(tex, texture_coordinates).r); \
} \
";
@@ -155,7 +155,7 @@
out vec4 fragment; \
void main() \
{ \
- fragment = texture2D(tex, texture_coordinates); \
+ fragment = texture(tex, texture_coordinates); \
} \
";
@@ -167,7 +167,7 @@
out vec4 fragment; \
void main() \
{ \
- fragment = colour * texture2D(tex, texture_coordinates); \
+ fragment = colour * texture(tex, texture_coordinates); \
} \
";