summaryrefslogtreecommitdiff
path: root/src/renderergl2/tr_light.c
diff options
context:
space:
mode:
authorSmileTheory <SmileTheory@gmail.com>2015-12-09 02:00:40 -0800
committerTim Angus <tim@ngus.net>2016-04-07 11:13:30 +0100
commit6f6ca6d529e1739565dbc64891fa7f1b478b8460 (patch)
treebd4ecf7ef9bd049bcb4979d3cbbcef6ea425144c /src/renderergl2/tr_light.c
parente3ac1437c4e4df764cc3279324fab7e3ee032e2a (diff)
OpenGL2: Parse radius entries from misc_cubemap entities.
Diffstat (limited to 'src/renderergl2/tr_light.c')
-rw-r--r--src/renderergl2/tr_light.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/renderergl2/tr_light.c b/src/renderergl2/tr_light.c
index 317f4585..7c661dd5 100644
--- a/src/renderergl2/tr_light.c
+++ b/src/renderergl2/tr_light.c
@@ -472,7 +472,7 @@ int R_CubemapForPoint( vec3_t point )
vec3_t diff;
vec_t length;
- VectorSubtract(point, tr.cubemapOrigins[i], diff);
+ VectorSubtract(point, tr.cubemaps[i].origin, diff);
length = DotProduct(diff, diff);
if (shortest > length)