From 5669444b75e09cb4aa80dc5dc11dcf805a279e57 Mon Sep 17 00:00:00 2001 From: hzqst <113660872@qq.com> Date: Fri, 23 Feb 2024 12:55:10 +0800 Subject: [PATCH] update gl_studio.cpp --- Plugins/Renderer/gl_studio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/Renderer/gl_studio.cpp b/Plugins/Renderer/gl_studio.cpp index 0ccb70dd..6a9df1cf 100644 --- a/Plugins/Renderer/gl_studio.cpp +++ b/Plugins/Renderer/gl_studio.cpp @@ -1859,7 +1859,7 @@ void R_StudioDrawVBOBegin(studio_vbo_t* VBOData) memcpy(StudioUBO.bonematrix, (*pbonetransform), sizeof(mat3x4) * 128); - GL_UploadSubDataToUBO(r_wsurf.hSceneUBO, 0, sizeof(StudioUBO), &StudioUBO); + GL_UploadSubDataToUBO(VBOData->hStudioUBO, 0, sizeof(StudioUBO), &StudioUBO); glBindBufferBase(GL_UNIFORM_BUFFER, BINDING_POINT_STUDIO_UBO, VBOData->hStudioUBO);