forked from bartvdbraak/blender
Fix for all OpenGL lights affecting Cycles viewport, regardless of their Enabled state
Was a regression since e1b8a5d. Probably not very optimal fix, but better than a regression anyway.
This commit is contained in:
parent
de8494b54e
commit
cbbb021596
@ -552,7 +552,8 @@ void GPU_basic_shader_light_set(int light_num, GPULightData *light)
|
||||
GPU_MATERIAL_STATE.lights_directional |= light_bit;
|
||||
}
|
||||
else {
|
||||
if (USE_GLSL) {
|
||||
/* TODO(sergey): Needs revisit. */
|
||||
if (USE_GLSL || true) {
|
||||
/* glsl shader needs these zero to skip them */
|
||||
const float zero[4] = {0.0f, 0.0f, 0.0f, 0.0f};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user