swap texture ID on resize

This commit is contained in:
Nick Fisher
2022-12-14 14:49:39 +08:00
parent 06b731cc75
commit f300246aa5

View File

@@ -143,7 +143,7 @@ class PolyvoxFilamentController extends FilamentController {
Future resize(int width, int height,
{double contentScaleFactor = 1.0}) async {
size = Size(width * _pixelRatio, height * _pixelRatio);
await _channel.invokeMethod("resize",
textureId = await _channel.invokeMethod("resize",
[width * _pixelRatio, height * _pixelRatio, contentScaleFactor]);
}