]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix R_DrawModelShadows/R_DrawModelShadowMaps prototypes not matching definitions
authoreihrul <eihrul@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 18 Oct 2011 06:52:23 +0000 (06:52 +0000)
committerRudolf Polzer <divverent@xonotic.org>
Tue, 18 Oct 2011 13:05:18 +0000 (15:05 +0200)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11440 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=a4938742a2244e7b5153b3446925cf0878ce1711

gl_rmain.c

index c38f2ee5a8bb45184b6daa15a1db4275295c8dea..2eff5f3e4b105f201bd051f3b88bcff6634c66e2 100644 (file)
@@ -6993,8 +6993,8 @@ extern cvar_t cl_locs_show;
 static void R_DrawLocs(void);
 static void R_DrawEntityBBoxes(void);
 static void R_DrawModelDecals(void);
-extern void R_DrawModelShadows(void);
-extern void R_DrawModelShadowMaps(void);
+extern void R_DrawModelShadows(int fbo, rtexture_t *depthtexture, rtexture_t *colortexture);
+extern void R_DrawModelShadowMaps(int fbo, rtexture_t *depthtexture, rtexture_t *colortexture);
 extern cvar_t cl_decals_newsystem;
 extern qboolean r_shadow_usingdeferredprepass;
 void R_RenderScene(int fbo, rtexture_t *depthtexture, rtexture_t *colortexture)
@@ -7076,7 +7076,7 @@ void R_RenderScene(int fbo, rtexture_t *depthtexture, rtexture_t *colortexture)
        if (r_shadows.integer >= 2 && shadowmapping && r_refdef.lightmapintensity > 0)
        {
                R_ResetViewRendering3D(fbo, depthtexture, colortexture);
-               R_DrawModelShadowMaps();
+               R_DrawModelShadowMaps(fbo, depthtexture, colortexture);
                R_ResetViewRendering3D(fbo, depthtexture, colortexture);
                // don't let sound skip if going slow
                if (r_refdef.scene.extraupdate)
@@ -7105,7 +7105,7 @@ void R_RenderScene(int fbo, rtexture_t *depthtexture, rtexture_t *colortexture)
        if ((r_shadows.integer == 1 || (r_shadows.integer > 0 && !shadowmapping)) && !r_shadows_drawafterrtlighting.integer && r_refdef.lightmapintensity > 0)
        {
                R_ResetViewRendering3D(fbo, depthtexture, colortexture);
-               R_DrawModelShadows();
+               R_DrawModelShadows(fbo, depthtexture, colortexture);
                R_ResetViewRendering3D(fbo, depthtexture, colortexture);
                // don't let sound skip if going slow
                if (r_refdef.scene.extraupdate)
@@ -7126,7 +7126,7 @@ void R_RenderScene(int fbo, rtexture_t *depthtexture, rtexture_t *colortexture)
        if ((r_shadows.integer == 1 || (r_shadows.integer > 0 && !shadowmapping)) && r_shadows_drawafterrtlighting.integer && r_refdef.lightmapintensity > 0)
        {
                R_ResetViewRendering3D(fbo, depthtexture, colortexture);
-               R_DrawModelShadows();
+               R_DrawModelShadows(fbo, depthtexture, colortexture);
                R_ResetViewRendering3D(fbo, depthtexture, colortexture);
                // don't let sound skip if going slow
                if (r_refdef.scene.extraupdate)