From b511eabb0f847bfeeb66ce6b70674cf8e7bdcca6 Mon Sep 17 00:00:00 2001 From: rdb Date: Thu, 2 Apr 2020 12:41:14 +0200 Subject: [PATCH] display: fix fallback of SMO_light_source_i_packed shader input This is not actually used by anything, but we might as well ensure that it's set to something sensible --- panda/src/display/graphicsStateGuardian.cxx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/panda/src/display/graphicsStateGuardian.cxx b/panda/src/display/graphicsStateGuardian.cxx index 915f3161d7..911ef621da 100644 --- a/panda/src/display/graphicsStateGuardian.cxx +++ b/panda/src/display/graphicsStateGuardian.cxx @@ -1611,11 +1611,17 @@ fetch_specified_part(Shader::ShaderMatInput part, InternalName *name, // Apply the default OpenGL lights otherwise. // Special exception for light 0, which defaults to white. if (i == 0) { - into[0].set_row(0, LVecBase4(1, 1, 1, 1)); + into[0].set(1, 1, 1, 1, + 1, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0); ++i; } for (; i < (size_t)count; ++i) { - fetch_specified_member(NodePath(), name, into[i]); + into[i].set(0, 0, 0, 0, + 1, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0); } return; }