diff options
author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2016-12-19 00:39:56 +0100 |
---|---|---|
committer | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2017-01-30 06:31:36 +0100 |
commit | bbc7844021dc34e26285a495ed86bad088b87279 (patch) | |
tree | b2ddd0e986bd6874673fb8cf99307c49e66c3252 /src/video_core/renderer_opengl/gl_rasterizer.h | |
parent | Merge pull request #2494 from Kloen/killing-warnings-2-final-mix (diff) | |
download | yuzu-bbc7844021dc34e26285a495ed86bad088b87279.tar yuzu-bbc7844021dc34e26285a495ed86bad088b87279.tar.gz yuzu-bbc7844021dc34e26285a495ed86bad088b87279.tar.bz2 yuzu-bbc7844021dc34e26285a495ed86bad088b87279.tar.lz yuzu-bbc7844021dc34e26285a495ed86bad088b87279.tar.xz yuzu-bbc7844021dc34e26285a495ed86bad088b87279.tar.zst yuzu-bbc7844021dc34e26285a495ed86bad088b87279.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.h b/src/video_core/renderer_opengl/gl_rasterizer.h index cc3e4bed5..a1aa07074 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.h +++ b/src/video_core/renderer_opengl/gl_rasterizer.h @@ -84,7 +84,7 @@ union PicaShaderConfig { // Fragment lighting state.lighting.enable = !regs.lighting.disable; - state.lighting.src_num = regs.lighting.num_lights + 1; + state.lighting.src_num = regs.lighting.max_light_index + 1; for (unsigned light_index = 0; light_index < state.lighting.src_num; ++light_index) { unsigned num = regs.lighting.light_enable.GetNum(light_index); |