From f12e87f2b7233c9ae54176f3c247926e55c8d429 Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Mon, 1 Feb 2021 02:20:02 -0700 Subject: [PATCH] light: build fix. Glass/fence textures will need to be fixed. --- light/trace.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/light/trace.cc b/light/trace.cc index 7eb5a1a7..35685a4d 100644 --- a/light/trace.cc +++ b/light/trace.cc @@ -309,7 +309,10 @@ SampleTexture(const bsp2_dface_t *face, const mbsp_t *bsp, const vec3_t point) color_rgba sample{}; 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 */