View Issue Details

IDProjectCategoryView StatusLast Update
0002918NoesisGUIUnrealpublic2024-01-29 22:27
Reporterhcpizzi Assigned Tohcpizzi  
PrioritynormalSeveritycrash 
Status resolvedResolutionfixed 
Target Version3.2.3Fixed in Version3.2.3 
Summary0002918: Crash when resizing the Viewport with the D3D11 render back
Description

A check fails during window resizing when the D3D11 RHI is used.

PlatformAny

Activities

hcpizzi

hcpizzi

2023-12-05 03:05

developer   ~0009000

I've attached a patch that resolves the problem.

WindowResizeFix.patch (644 bytes)   
Index: NoesisRuntimeModule.cpp
===================================================================
--- NoesisRuntimeModule.cpp	(revision 12825)
+++ NoesisRuntimeModule.cpp	(working copy)
@@ -640,6 +640,15 @@
 		InputPreProcessor = NoesisRegisterInputPreProcessor();
 
 		ViewExtension = NoesisRegisterSceneViewExtension();
+
+		if (FSlateApplication::IsInitialized())
+		{
+			FSlateRenderer* SlateRenderer = FSlateApplication::Get().GetRenderer();
+			SlateRenderer->OnPreResizeWindowBackBuffer().AddLambda([](void*)
+			{
+				BackgroundImage::BackgroundColorTexture = nullptr;
+			});
+		}
 	}
 
 	void OnEnginePreExit()
WindowResizeFix.patch (644 bytes)   

Issue History

Date Modified Username Field Change
2023-12-05 03:04 hcpizzi New Issue
2023-12-05 03:05 hcpizzi Note Added: 0009000
2023-12-05 03:05 hcpizzi File Added: WindowResizeFix.patch
2023-12-05 10:07 jsantos Assigned To => hcpizzi
2023-12-05 10:07 jsantos Status new => assigned
2023-12-05 10:07 jsantos Target Version => 3.2.3
2023-12-05 10:08 jsantos Status assigned => feedback
2024-01-22 11:38 jsantos Status feedback => assigned
2024-01-22 11:47 sfernandez Target Version 3.2.3 => 3.2.4
2024-01-22 11:48 jsantos Target Version 3.2.4 => 3.2.3
2024-01-29 22:27 hcpizzi Status assigned => resolved
2024-01-29 22:27 hcpizzi Resolution open => fixed
2024-01-29 22:27 hcpizzi Fixed in Version => 3.2.3