Commit 05fe475
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 to the default value
after it is used.1 parent 5ab62e7 commit 05fe475
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2712 | 2712 | | |
2713 | 2713 | | |
2714 | 2714 | | |
2715 | | - | |
| 2715 | + | |
| 2716 | + | |
2716 | 2717 | | |
2717 | 2718 | | |
2718 | 2719 | | |
| |||
0 commit comments