| 93 | } |
| 94 | |
| 95 | void GLReplay::InitOutputWindow(OutputWindow &outwin) |
| 96 | { |
| 97 | if(m_pDriver == NULL) |
| 98 | return; |
| 99 | |
| 100 | MakeCurrentReplayContext(&outwin); |
| 101 | |
| 102 | WrappedOpenGL &drv = *m_pDriver; |
| 103 | |
| 104 | drv.glGenVertexArrays(1, &outwin.BlitData.emptyVAO); |
| 105 | drv.glBindVertexArray(outwin.BlitData.emptyVAO); |
| 106 | |
| 107 | drv.glObjectLabel(eGL_VERTEX_ARRAY, outwin.BlitData.emptyVAO, -1, "Empty VAO for output window"); |
| 108 | |
| 109 | drv.glGenFramebuffers(1, &outwin.BlitData.readFBO); |
| 110 | drv.glBindFramebuffer(eGL_READ_FRAMEBUFFER, outwin.BlitData.readFBO); |
| 111 | drv.glReadBuffer(eGL_COLOR_ATTACHMENT0); |
| 112 | |
| 113 | drv.glObjectLabel(eGL_FRAMEBUFFER, outwin.BlitData.readFBO, -1, "Read FBO for output window"); |
| 114 | |
| 115 | if(HasExt[EXT_framebuffer_sRGB]) |
| 116 | drv.glEnable(eGL_FRAMEBUFFER_SRGB); |
| 117 | } |
| 118 | |
| 119 | bool GLReplay::CheckResizeOutputWindow(uint64_t id) |
| 120 | { |
nothing calls this directly
no test coverage detected