From: divverent Date: Mon, 13 Jun 2011 18:34:50 +0000 (+0000) Subject: fix wrong array sizes in MODE_WATER in softrast causing an overrun X-Git-Tag: xonotic-v0.5.0~116 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c0f701d83b79d2bd595dc3253f5552bd5cd037ef;p=xonotic%2Fdarkplaces.git 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 ::stable-branch::merge=e1cc58c8345fbadd75421fa7843ec19bdf0b8681 --- 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;