From 302ad6958e355f2883e9d2ebd9c141b188ccdf10 Mon Sep 17 00:00:00 2001 From: gri573 Date: Thu, 6 Jun 2024 12:33:11 +0200 Subject: [PATCH] don't leave gl_FragData[3] uninitialised at all in all_solid.fsh --- shaders/dimensions/all_solid.fsh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/shaders/dimensions/all_solid.fsh b/shaders/dimensions/all_solid.fsh index 92dd2f2..dd9dd2d 100644 --- a/shaders/dimensions/all_solid.fsh +++ b/shaders/dimensions/all_solid.fsh @@ -446,13 +446,12 @@ void main() { #ifdef HAND if (Albedo.a > 0.1){ Albedo.a = 0.75; - gl_FragData[3] = vec4(0.0); } else { Albedo.a = 1.0; } #endif - #if defined PARTICLE_RENDERING_FIX && (defined ENTITIES || defined BLOCKENTITIES) + #if defined HAND || defined ENTITIES || defined BLOCKENTITIES gl_FragData[3] = vec4(0.0); #endif