[Notice of Holidays]
Please note that our staff will not be available from 2024/Dec/28 - 2025/Jan/5 JST.
The Live2D Creators Forum will remain open during the holidays.
Submissions that require a response will be answered after we reopen for business.
Please note that it will take longer than usual to respond to your request.
Live2D Cubism Web SDK buffers can not be used with multiple targets
Hi all,
I'm currently having this issue show up in the console: WebGL: INVALID_OPERATION: bindBuffer: buffers can not be used with multiple targets, and I don't know what the cause of it is.
I was wondering what the issue could be, and how I could fix it.
Thank you very much.
0 ·
Comments
Thank you for always using our products.
We are currently investigating the cause of this warning message and how to fix it.
We will share the information here when we find out how to fix it.
Upon investigation, we found that the "ARRAY_BUFFER" and "ELEMENT_ARRAY_BUFFER" parameters were passed to the same buffer in "CubismRendererProfile_WebGL.save()".
To fix, modify one line of code in "CubismRendererProfile_WebGL.save()".
Change "this._lastArrayBufferBinding" used in the following code to "this._lastElementArrayBufferBinding".
https://github.com/Live2D/CubismWebFramework/blob/598b2a8ea1db1257e9c04bc9b09f6cec7529ae46/src/rendering/cubismrenderer_webgl.ts#L1090
The change is paired with "CubismRendererProfile_WebGL.restore()" and WARNING is resolved.
This fix will be applied in the next SDK version.