mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 12:31:54 +00:00
Fix brightmaps on midtextures not working
Fixes Lost Colony (again)
This commit is contained in:
parent
7415b5ef2f
commit
cc2c19bcff
2 changed files with 18 additions and 13 deletions
|
|
@ -136,14 +136,30 @@ static void R_Render2sidedMultiPatchColumn(drawcolumndata_t* dc, column_t *colum
|
||||||
|
|
||||||
drawcolumndata_t dc_copy = *dc;
|
drawcolumndata_t dc_copy = *dc;
|
||||||
coldrawfunc_t* colfunccopy = colfunc;
|
coldrawfunc_t* colfunccopy = colfunc;
|
||||||
|
|
||||||
|
// FIXME: do something better to look these up WITHOUT affecting global state...
|
||||||
if (R_CheckColumnFunc(BASEDRAWFUNC) == true)
|
if (R_CheckColumnFunc(BASEDRAWFUNC) == true)
|
||||||
|
{
|
||||||
|
if (brightmap != NULL)
|
||||||
|
{
|
||||||
|
colfunccopy = colfuncs_bm[COLDRAWFUNC_TWOSMULTIPATCH];
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
colfunccopy = colfuncs[COLDRAWFUNC_TWOSMULTIPATCH];
|
colfunccopy = colfuncs[COLDRAWFUNC_TWOSMULTIPATCH];
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else if (R_CheckColumnFunc(COLDRAWFUNC_FUZZY) == true)
|
else if (R_CheckColumnFunc(COLDRAWFUNC_FUZZY) == true)
|
||||||
|
{
|
||||||
|
if (brightmap != NULL)
|
||||||
|
{
|
||||||
|
colfunccopy = colfuncs_bm[COLDRAWFUNC_TWOSMULTIPATCHTRANS];
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
colfunccopy = colfuncs[COLDRAWFUNC_TWOSMULTIPATCHTRANS];
|
colfunccopy = colfuncs[COLDRAWFUNC_TWOSMULTIPATCHTRANS];
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
colfunccopy(const_cast<drawcolumndata_t*>(&dc_copy));
|
colfunccopy(const_cast<drawcolumndata_t*>(&dc_copy));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
11
src/screen.h
11
src/screen.h
|
|
@ -118,17 +118,6 @@ struct vmode_t
|
||||||
#define NUMSPECIALMODES 4
|
#define NUMSPECIALMODES 4
|
||||||
extern vmode_t specialmodes[NUMSPECIALMODES];
|
extern vmode_t specialmodes[NUMSPECIALMODES];
|
||||||
|
|
||||||
// -----
|
|
||||||
// CPUID
|
|
||||||
// -----
|
|
||||||
extern boolean R_ASM;
|
|
||||||
extern boolean R_486;
|
|
||||||
extern boolean R_586;
|
|
||||||
extern boolean R_MMX;
|
|
||||||
extern boolean R_3DNow;
|
|
||||||
extern boolean R_MMXExt;
|
|
||||||
extern boolean R_SSE2;
|
|
||||||
|
|
||||||
// ----------------
|
// ----------------
|
||||||
// screen variables
|
// screen variables
|
||||||
// ----------------
|
// ----------------
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue