From ffa0ddd94c6c3887de574214872e3185ea027e99 Mon Sep 17 00:00:00 2001 From: Arisotura Date: Mon, 29 Apr 2019 18:52:23 +0200 Subject: fix the alpha0 shit --- src/GPU3D_OpenGL43.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/GPU3D_OpenGL43.cpp b/src/GPU3D_OpenGL43.cpp index 964216a..21a77c1 100644 --- a/src/GPU3D_OpenGL43.cpp +++ b/src/GPU3D_OpenGL43.cpp @@ -167,7 +167,7 @@ vec4 TextureLookup() paladdr = (paladdr << 2) + pixel.r; vec4 color = texelFetch(TexPalMem, ivec2(paladdr&0x3FF, paladdr>>10), 0); - return vec4(color.rgb, step(1,pixel.r)*alpha0); + return vec4(color.rgb, max(step(1,pixel.r),alpha0)); } else if (type == 3) { @@ -179,7 +179,7 @@ vec4 TextureLookup() paladdr = (paladdr << 3) + pixel.r; vec4 color = texelFetch(TexPalMem, ivec2(paladdr&0x3FF, paladdr>>10), 0); - return vec4(color.rgb, step(1,pixel.r)*alpha0); + return vec4(color.rgb, max(step(1,pixel.r),alpha0)); } else if (type == 4) { @@ -189,7 +189,7 @@ vec4 TextureLookup() paladdr = (paladdr << 3) + pixel.r; vec4 color = texelFetch(TexPalMem, ivec2(paladdr&0x3FF, paladdr>>10), 0); - return vec4(color.rgb, step(1,pixel.r)*alpha0); + return vec4(color.rgb, max(step(1,pixel.r),alpha0)); } else if (type == 5) { -- cgit v1.2.3