OK to return Flutter texture handle even if width or height don't match
This commit is contained in:
1 parent
7349fa2298
commit
726f9b8c80
1 file changed
-3
@@ -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