light: build fix. Glass/fence textures will need to be fixed.

This commit is contained in:
Eric Wasylishen 2021-02-01 02:20:02 -07:00
parent 8bb848d221
commit f12e87f2b7
1 changed files with 5 additions and 1 deletions

View File

@ -310,6 +310,9 @@ SampleTexture(const bsp2_dface_t *face, const mbsp_t *bsp, const vec3_t point)
if (!bsp->rgbatexdatasize)
return sample;
// FIXME: re-enable the following code
return sample;
#if 0
const auto *miptex = Face_Miptex(bsp, face);
if (miptex == nullptr)
@ -329,6 +332,7 @@ SampleTexture(const bsp2_dface_t *face, const mbsp_t *bsp, const vec3_t point)
sample = data[(miptex->width * y) + x];
return sample;
#endif
}
/* assumes point is on the same plane as face */