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);