From 531ee80ab4b0102c33a2e837cca31c6f0f5587da Mon Sep 17 00:00:00 2001 From: Yamagi Burmeister Date: Fri, 20 Mar 2015 17:41:52 +0100 Subject: [PATCH] We need to apply the lightmap. This fixes #61. The issue was found and patched by ppsspp-gamer. --- src/client/refresh/r_image.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/client/refresh/r_image.c b/src/client/refresh/r_image.c index 72009b69..772e5a16 100644 --- a/src/client/refresh/r_image.c +++ b/src/client/refresh/r_image.c @@ -646,6 +646,8 @@ R_Upload32Native(unsigned *data, int width, int height, qboolean mipmap) upload_width = width; upload_height = height; + R_LightScaleTexture(data, upload_width, upload_height, !mipmap); + for (i = 0; i < c; i++, scan += 4) { if (*scan != 255)