light: add fixme

This commit is contained in:
Eric Wasylishen 2021-05-21 20:45:15 -06:00
parent 8fc3266db5
commit 3f00d2fd00
1 changed files with 2 additions and 0 deletions

View File

@ -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];