Commit 726e579
committed
gfx: skip the draw when a pipeline failed to build
buildPipeline returns a null pipeline when QRhiGraphicsPipeline::create()
fails (transient during graph rebuild). InvertYRenderer::finishFrame
dereferenced it via setGraphicsPipeline (Q_ASSERT/null-deref), and
quadRenderPass asserted on the then-missing pass. Both now skip the draw,
matching defaultRenderPass / the if(pip.pipeline) guard at pass creation.
(cherry picked from commit 1290424)1 parent 2370a0c commit 726e579
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
111 | 116 | | |
112 | 117 | | |
113 | 118 | | |
| |||
195 | 200 | | |
196 | 201 | | |
197 | 202 | | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
198 | 206 | | |
199 | 207 | | |
200 | 208 | | |
| |||
0 commit comments