From 0093778f646d60c0f0a0c2a04d026aac08b63b8e Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Tue, 19 Dec 2023 22:55:41 -0600 Subject: [PATCH] [nostalgia/core/opengl] Cleanup sprite enable/disable code --- src/nostalgia/modules/core/src/opengl/gfx.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nostalgia/modules/core/src/opengl/gfx.cpp b/src/nostalgia/modules/core/src/opengl/gfx.cpp index a47e2ddc..30b20b44 100644 --- a/src/nostalgia/modules/core/src/opengl/gfx.cpp +++ b/src/nostalgia/modules/core/src/opengl/gfx.cpp @@ -73,8 +73,8 @@ constexpr ox::CStringView spritevshadTmpl = R"glsl( float xScaleInvert = 1.0 - vXScale; gl_Position = vec4( vPosition.x * vXScale - xScaleInvert, vPosition.y, - vPosition.z, 1.0); - fTexCoord = vTexCoord * vec2(1, vTileHeight) * vec2(vEnabled, vEnabled); + vPosition.z, 1.0) * vEnabled; + fTexCoord = vTexCoord * vec2(1, vTileHeight); })glsl"; constexpr ox::CStringView spritefshadTmpl = R"glsl(