]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - dpsoftrast.c
fix wrong array sizes in MODE_WATER in softrast causing an overrun
[xonotic/darkplaces.git] / 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;