From 43702580f5c618f7337c48adb9d797a77c3c5ed6 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sun, 6 Jan 2013 20:05:59 +0900 Subject: [PATCH] Clear the texture element chain after drawing. It was properly cleared after drawing water chains and sky chains, but I had missed normal surfaces. It took the use of the same texture for both normal surfaces and water surfaces to trigger the bug. Thanks go to Simon 'Sock' O'Callaghan and his In The Shadows mod. --- libs/video/renderer/glsl/glsl_bsp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/video/renderer/glsl/glsl_bsp.c b/libs/video/renderer/glsl/glsl_bsp.c index b01d4c47e..98675fa22 100644 --- a/libs/video/renderer/glsl/glsl_bsp.c +++ b/libs/video/renderer/glsl/glsl_bsp.c @@ -1132,6 +1132,8 @@ glsl_R_DrawWorld (void) quake_bsp.tlst.location, quake_bsp.color.location); } + tex->elechain = 0; + tex->elechain_tail = &tex->elechain; } bsp_end (); }