| 1386 | } |
| 1387 | |
| 1388 | void 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 | |
| 1404 | void Graphics::SetClientActiveTexture(int index) { |
| 1405 | if (shadow_state_.client_active_textures_ != index) { |
no outgoing calls
no test coverage detected