From 726f9b8c8072ed69ff78a640d8187045c5769392 Mon Sep 17 00:00:00 2001 From: Nick Fisher Date: Wed, 16 Apr 2025 13:54:05 +0800 Subject: [PATCH] OK to return Flutter texture handle even if width or height don't match --- .../thermion_flutter/windows/flutter_d3d_texture.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/thermion_flutter/thermion_flutter/windows/flutter_d3d_texture.cpp b/thermion_flutter/thermion_flutter/windows/flutter_d3d_texture.cpp index 8311b421..a50ce72c 100644 --- a/thermion_flutter/thermion_flutter/windows/flutter_d3d_texture.cpp +++ b/thermion_flutter/thermion_flutter/windows/flutter_d3d_texture.cpp @@ -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(); })); }