fix: MeshComponent.bind should bind to the provided device (#3278)

MeshComponent.bind should bind to the provided device, not the world's.
Note: they are the same device. But semantics are important.
This commit is contained in:
Luan Nico
2024-08-25 18:58:21 -04:00
parent 5c508e81bd
commit d06b4ce693

View File

@ -30,7 +30,7 @@ class MeshComponent extends Object3D {
@override
void bind(GraphicsDevice device) {
world.device
device
..model.setFrom(transformMatrix)
..bindMesh(mesh);
}