From: eihrul Date: Tue, 18 Oct 2011 06:52:23 +0000 (+0000) Subject: fix R_DrawModelShadows/R_DrawModelShadowMaps prototypes not matching definitions X-Git-Tag: xonotic-v0.6.0~163^2~117 X-Git-Url: http://de.git.xonotic.org/?a=commitdiff_plain;h=a4938742a2244e7b5153b3446925cf0878ce1711;p=xonotic%2Fdarkplaces.git fix R_DrawModelShadows/R_DrawModelShadowMaps prototypes not matching definitions git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11440 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_rmain.c b/gl_rmain.c index c38f2ee5..2eff5f3e 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -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)