ES2 Shader Fix

This commit is contained in:
TheBrokenRail 2023-09-07 21:33:59 -04:00
parent 21f52cba33
commit 86dadd6644
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -108,7 +108,7 @@ int main() {
// Make Window Context Current
glfwMakeContextCurrent(glfw_window);
// Setup Compatibility Layer
init_gles_compatibility_layer();