]> 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)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 13 Jun 2011 18:34:50 +0000 (18:34 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11199 d7cf8633-e32d-0410-b094-e92efae38249

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;