Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.9.4, 5.10.1, 5.11
-
None
-
3bc2e44bd387aa2185083fcf94eeee67f37380f3 (qt/qt3d/5.12)
Description
A texture may easily be set to one of the unsupported formats even though a RenderCapture is part of the frame graph. When GraphicsContext::readFramebuffer calls Q_UNREACHABLE, this leads to undefined behavior, which on my machine means the program just hangs in the render thread.
We should rather return an empty image and print a warning in these cases.