OK to return Flutter texture handle even if width or height don't match
This commit is contained in:
@@ -29,9 +29,6 @@ namespace thermion::tflutter::windows
|
|||||||
kFlutterDesktopGpuSurfaceTypeDxgiSharedHandle,
|
kFlutterDesktopGpuSurfaceTypeDxgiSharedHandle,
|
||||||
[&](size_t width, size_t height)
|
[&](size_t width, size_t height)
|
||||||
{
|
{
|
||||||
if(width != this->_width || height != this->_height) {
|
|
||||||
return (FlutterDesktopGpuSurfaceDescriptor*)nullptr;
|
|
||||||
}
|
|
||||||
return _textureDescriptor.get();
|
return _textureDescriptor.get();
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user