static void R_Bloom_StartFrame(void)
{
- int bloomtexturewidth, bloomtextureheight, screentexturewidth, screentextureheight;
+ int screentexturewidth, screentextureheight;
int viewwidth, viewheight;
textype_t textype = TEXTYPE_COLORBUFFER;
// calculate desired texture sizes
screentexturewidth = viewwidth;
screentextureheight = viewheight;
- bloomtexturewidth = r_fb.bloomwidth;
- bloomtextureheight = r_fb.bloomheight;
if ((r_bloom.integer || (!R_Stereo_Active() && (r_motionblur.value > 0 || r_damageblur.value > 0))) && ((r_bloom_resolution.integer < 4 || r_bloom_blur.value < 1 || r_bloom_blur.value >= 512) || r_refdef.view.width > (int)vid.maxtexturesize_2d || r_refdef.view.height > (int)vid.maxtexturesize_2d))
{
void R_DrawCustomSurface(skinframe_t *skinframe, const matrix4x4_t *texmatrix, int materialflags, int firstvertex, int numvertices, int firsttriangle, int numtriangles, qboolean writedepth, qboolean prepass, qboolean ui)
{
- int q;
static texture_t texture;
- static msurface_t surface;
- const msurface_t *surfacelist = &surface;
// fake enough texture and surface state to render this geometry