You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We initialize geometry component with a cube that defaults to Uint16 index buffer. Updating geometry with high poly mesh and switching to Uint32 index buffer (or from 32 to 16) crashes as we try to update buffer assuming old type.
We need to detect the change of type and recreate the buffer.
Maybe geometry should auto-guess based in positions length? Or always switch to Uint32 if available?
That's actually problem with any attribute. Eg. we initialize geometry with cube that has texCoords and then we want to render something without we will get wrong attribute for texCoords as they will not be updated.
We initialize geometry component with a cube that defaults to Uint16 index buffer. Updating geometry with high poly mesh and switching to Uint32 index buffer (or from 32 to 16) crashes as we try to update buffer assuming old type.
We need to detect the change of type and recreate the buffer.
Maybe geometry should auto-guess based in positions length? Or always switch to Uint32 if available?
Related Invalid index buffer type
The text was updated successfully, but these errors were encountered: