diff options
author | bunnei <bunneidev@gmail.com> | 2015-11-19 05:17:25 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2016-02-05 23:17:34 +0100 |
commit | 6307999116d250a9805c0d7ae2c131407772fc3f (patch) | |
tree | 00185bba2a68393b348ff4d54bf869ec6e2f1539 /src/video_core/renderer_opengl/gl_rasterizer.h | |
parent | gl_rasterizer: Minor naming refactor on Pica register naming. (diff) | |
download | yuzu-6307999116d250a9805c0d7ae2c131407772fc3f.tar yuzu-6307999116d250a9805c0d7ae2c131407772fc3f.tar.gz yuzu-6307999116d250a9805c0d7ae2c131407772fc3f.tar.bz2 yuzu-6307999116d250a9805c0d7ae2c131407772fc3f.tar.lz yuzu-6307999116d250a9805c0d7ae2c131407772fc3f.tar.xz yuzu-6307999116d250a9805c0d7ae2c131407772fc3f.tar.zst yuzu-6307999116d250a9805c0d7ae2c131407772fc3f.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_rasterizer.h')
-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 17bda2d1d..6be161efd 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.h +++ b/src/video_core/renderer_opengl/gl_rasterizer.h @@ -80,7 +80,7 @@ struct PicaShaderConfig { unsigned num = regs.lighting.light_enable.GetNum(light_index); const auto& light = regs.lighting.light[num]; res.light_src[light_index].num = num; - res.light_src[light_index].directional = light.w != 0; + res.light_src[light_index].directional = light.directional != 0; res.light_src[light_index].two_sided_diffuse = light.two_sided_diffuse != 0; res.light_src[light_index].dist_atten_enabled = regs.lighting.IsDistAttenEnabled(num); res.light_src[light_index].dist_atten_bias = Pica::float20::FromRawFloat20(light.dist_atten_bias).ToFloat32(); |