Skip to content

Commit e074b49

Browse files
authored
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.
1 parent 07594dd commit e074b49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/flame_3d/lib/src/components/mesh_component.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class MeshComponent extends Object3D {
3030

3131
@override
3232
void bind(GraphicsDevice device) {
33-
world.device
33+
device
3434
..model.setFrom(transformMatrix)
3535
..bindMesh(mesh);
3636
}

0 commit comments

Comments
 (0)