]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix wrong array sizes in MODE_WATER in softrast causing an overrun
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 13 Jun 2011 18:34:50 +0000 (18:34 +0000)
committerRudolf Polzer <divverent@xonotic.org>
Mon, 13 Jun 2011 18:28:26 +0000 (20:28 +0200)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11199 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=e1cc58c8345fbadd75421fa7843ec19bdf0b8681

dpsoftrast.c

index abefc1b6f545d7449f5d91846db589236233453e..179a4d0c5fe93cae3b4668e1f4d9221c6a79082c 100644 (file)
@@ -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;