summaryrefslogtreecommitdiff
path: root/src/renderergl2/tr_light.c
diff options
context:
space:
mode:
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)