light: build fix. Glass/fence textures will need to be fixed.
This commit is contained in:
parent
8bb848d221
commit
f12e87f2b7
|
|
@ -310,6 +310,9 @@ SampleTexture(const bsp2_dface_t *face, const mbsp_t *bsp, const vec3_t point)
|
||||||
if (!bsp->rgbatexdatasize)
|
if (!bsp->rgbatexdatasize)
|
||||||
return sample;
|
return sample;
|
||||||
|
|
||||||
|
// FIXME: re-enable the following code
|
||||||
|
return sample;
|
||||||
|
#if 0
|
||||||
const auto *miptex = Face_Miptex(bsp, face);
|
const auto *miptex = Face_Miptex(bsp, face);
|
||||||
|
|
||||||
if (miptex == nullptr)
|
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];
|
sample = data[(miptex->width * y) + x];
|
||||||
|
|
||||||
return sample;
|
return sample;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/* assumes point is on the same plane as face */
|
/* assumes point is on the same plane as face */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue