From 86dadd6644d454b1c5460d7110a89c54cbdd2507 Mon Sep 17 00:00:00 2001 From: TheBrokenRail Date: Thu, 7 Sep 2023 21:33:59 -0400 Subject: [PATCH] ES2 Shader Fix --- src/shaders/es2/main.fsh | 2 +- test/src/main.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shaders/es2/main.fsh b/src/shaders/es2/main.fsh index 8d8fd9d..ac02588 100644 --- a/src/shaders/es2/main.fsh +++ b/src/shaders/es2/main.fsh @@ -23,7 +23,7 @@ void main(void) { gl_FragColor = v_color; // Texture if (u_has_texture) { - vec4 texture_color = texture(u_texture_unit, v_texture_pos.xy); + vec4 texture_color = texture2D(u_texture_unit, v_texture_pos.xy); if (u_highlight_mode) { texture_color.rgb = u_highlight_mode_color.rgb; texture_color.a *= u_highlight_mode_color.a; diff --git a/test/src/main.cpp b/test/src/main.cpp index 7b99c23..6cce22d 100644 --- a/test/src/main.cpp +++ b/test/src/main.cpp @@ -108,7 +108,7 @@ int main() { // Make Window Context Current glfwMakeContextCurrent(glfw_window); - + // Setup Compatibility Layer init_gles_compatibility_layer();