OK to return Flutter texture handle even if width or height don't match

This commit is contained in:
Nick Fisher
2025-04-16 13:54:05 +08:00
parent 7349fa2298
commit 726f9b8c80

View File

@@ -29,9 +29,6 @@ namespace thermion::tflutter::windows
kFlutterDesktopGpuSurfaceTypeDxgiSharedHandle,
[&](size_t width, size_t height)
{
if(width != this->_width || height != this->_height) {
return (FlutterDesktopGpuSurfaceDescriptor*)nullptr;
}
return _textureDescriptor.get();
}));
}