Commit dda6b1d
committed
Fix screenshots with read-only depth buffer
When the read-only depth buffer is used (if r_readonlyDepthBuffer is 2,
or if it's 1 but the driver lacks certain extensions), the screenshots
were done from the 3d rendering buffer instead of the final framebuffer.
This caused screenshots to lack tonemapping, color grading and 2D
rendering. Fix it by resetting GL_READ_FRAMEBUFFER when taking a
screenshot.1 parent eec9159 commit dda6b1d
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
654 | 654 | | |
655 | 655 | | |
656 | 656 | | |
| 657 | + | |
| 658 | + | |
657 | 659 | | |
658 | 660 | | |
659 | 661 | | |
| |||
0 commit comments