MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / BlitColorBuffer

Method BlitColorBuffer

Source/Graphics/graphics.cpp:1388–1402  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1386}
1387
1388void Graphics::BlitColorBuffer() {
1389 CHECK_FBO_ERROR();
1390 CHECK_GL_ERROR();
1391 glBindFramebuffer(GL_READ_FRAMEBUFFER, multisample_framebuffer);
1392 glBindFramebuffer(GL_DRAW_FRAMEBUFFER, framebuffer);
1393 glReadBuffer(GL_COLOR_ATTACHMENT0);
1394 glDrawBuffer(GL_COLOR_ATTACHMENT0);
1395 glBlitFramebuffer(0, 0, render_dims[0], render_dims[1], 0, 0, render_dims[0], render_dims[1], GL_COLOR_BUFFER_BIT, GL_NEAREST);
1396 glReadBuffer(GL_COLOR_ATTACHMENT1);
1397 glDrawBuffer(GL_COLOR_ATTACHMENT1);
1398 glBlitFramebuffer(0, 0, render_dims[0], render_dims[1], 0, 0, render_dims[0], render_dims[1], GL_COLOR_BUFFER_BIT, GL_NEAREST);
1399 glBindFramebuffer(GL_FRAMEBUFFER, curr_framebuffer);
1400 CHECK_FBO_ERROR();
1401 CHECK_GL_ERROR();
1402}
1403
1404void Graphics::SetClientActiveTexture(int index) {
1405 if (shadow_state_.client_active_textures_ != index) {

Callers 2

DrawMethod · 0.80
ApplyPostEffectsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected