From e1cc58c8345fbadd75421fa7843ec19bdf0b8681 Mon Sep 17 00:00:00 2001 From: divverent Date: Mon, 13 Jun 2011 18:34:50 +0000 Subject: [PATCH] fix wrong array sizes in MODE_WATER in softrast causing an overrun git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11199 d7cf8633-e32d-0410-b094-e92efae38249 --- dpsoftrast.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dpsoftrast.c b/dpsoftrast.c index abefc1b6..179a4d0c 100644 --- a/dpsoftrast.c +++ b/dpsoftrast.c @@ -4566,9 +4566,9 @@ void DPSOFTRAST_PixelShader_Water(DPSOFTRAST_State_Thread *thread, const DPSOFTR float EyeVectorslope[4]; // uniforms - float ScreenScaleRefractReflect[2]; - float ScreenCenterRefractReflect[2]; - float DistortScaleRefractReflect[2]; + float ScreenScaleRefractReflect[4]; + float ScreenCenterRefractReflect[4]; + float DistortScaleRefractReflect[4]; float RefractColor[4]; float ReflectColor[4]; float ReflectFactor; -- 2.39.2