From 3f00d2fd00d36f745eed62811a8e29abcc8b7a24 Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Fri, 21 May 2021 20:45:15 -0600 Subject: [PATCH] light: add fixme --- light/trace.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/light/trace.cc b/light/trace.cc index d7e2ad5f..3828cca3 100644 --- a/light/trace.cc +++ b/light/trace.cc @@ -328,6 +328,8 @@ SampleTexture(const bsp2_dface_t *face, const mbsp_t *bsp, const vec3_t point) assert (x >= 0); assert (y >= 0); + // FIXME: this is broken - palette index? color? + // see: https://github.com/ericwa/ericw-tools/commit/0661098bc57d09b9961aa8314c52545a8f89a1e1#diff-dff5fe3d0288e49cabf1e7bc8fb28819c513be54cb7bbcdbea8b52ee0efd6bf5 color_rgba *data = (color_rgba*)((uint8_t*)miptex + miptex->offset); sample = data[(miptex->width * y) + x];