From 9004cf64bf5066a778eea39a4ab48623b04c6d42 Mon Sep 17 00:00:00 2001 From: Cosmic Linden Date: Fri, 30 Aug 2024 10:57:44 -0700 Subject: secondlife/viewer#2448: Fix crash rendering rigged PBR prims --- indra/newview/lldrawpoolpbropaque.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'indra/newview/lldrawpoolpbropaque.cpp') diff --git a/indra/newview/lldrawpoolpbropaque.cpp b/indra/newview/lldrawpoolpbropaque.cpp index 4ea23412e6..07f8ccb549 100644 --- a/indra/newview/lldrawpoolpbropaque.cpp +++ b/indra/newview/lldrawpoolpbropaque.cpp @@ -62,8 +62,9 @@ void LLDrawPoolGLTFPBR::renderDeferred(S32 pass) gDeferredPBROpaqueProgram.bind(); pushGLTFBatches(mRenderType); - gDeferredPBROpaqueProgram.bind(true); LL::GLTFSceneManager::instance().render(true, true); + + gDeferredPBROpaqueProgram.bind(true); pushRiggedGLTFBatches(mRenderType + 1); } -- cgit v1.2.3