MCPcopy Create free account
hub / github.com/baldurk/renderdoc / InitOutputWindow

Method InitOutputWindow

renderdoc/driver/gl/gl_outputwindow.cpp:95–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95void 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
119bool GLReplay::CheckResizeOutputWindow(uint64_t id)
120{

Callers

nothing calls this directly

Calls 7

glGenVertexArraysMethod · 0.45
glBindVertexArrayMethod · 0.45
glObjectLabelMethod · 0.45
glGenFramebuffersMethod · 0.45
glBindFramebufferMethod · 0.45
glReadBufferMethod · 0.45
glEnableMethod · 0.45

Tested by

no test coverage detected