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.
Attachments
For Gerrit Dashboard: QTBUG-66515 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
243333,2 | Don't trigger Q_UNREACHABLE if passed invalid render buffer formats | 5.12 | qt/qt3d | Status: MERGED | +2 | 0 |