mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-03 12:28:03 +08:00
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:
@ -30,7 +30,7 @@ class MeshComponent extends Object3D {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
void bind(GraphicsDevice device) {
|
void bind(GraphicsDevice device) {
|
||||||
world.device
|
device
|
||||||
..model.setFrom(transformMatrix)
|
..model.setFrom(transformMatrix)
|
||||||
..bindMesh(mesh);
|
..bindMesh(mesh);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user