glgsg: fix shader not being applied if same across multiple buffers

See https://discourse.panda3d.org/t/multi-pass-rendering-setinitialstate-wont-apply-shader/25712
This commit is contained in:
rdb 2020-03-08 10:31:03 +01:00
parent e8d8f20acb
commit 17776b0666

View File

@ -4148,6 +4148,7 @@ end_frame(Thread *current_thread) {
_current_shader = nullptr;
_current_shader_context = nullptr;
}
_state_shader = nullptr;
#endif
// Respecify the active texture next frame, for good measure.