From 5391216756165e0f1e66db3b141c4b4c0c9849fb Mon Sep 17 00:00:00 2001 From: Christopher Bruns Date: Sun, 2 Oct 2016 16:27:43 -0400 Subject: [PATCH] Delete unused new BlitFromEyeTexture() method I ended up not using. --- src/gl/renderer/gl_renderbuffers.cpp | 20 -------------------- src/gl/renderer/gl_renderbuffers.h | 1 - 2 files changed, 21 deletions(-) diff --git a/src/gl/renderer/gl_renderbuffers.cpp b/src/gl/renderer/gl_renderbuffers.cpp index 31fc36832..b2471e4b9 100644 --- a/src/gl/renderer/gl_renderbuffers.cpp +++ b/src/gl/renderer/gl_renderbuffers.cpp @@ -576,26 +576,6 @@ void FGLRenderBuffers::BlitToEyeTexture(int eye) glBindFramebuffer(GL_DRAW_FRAMEBUFFER, 0); } -void FGLRenderBuffers::BlitFromEyeTexture(int eye, GL_IRECT* box) -{ - glBindFramebuffer(GL_READ_FRAMEBUFFER, mEyeFBs[eye]); - glBindFramebuffer(GL_DRAW_FRAMEBUFFER, mOutputFB); - if (box == nullptr) - box = &GLRenderer->mOutputLetterbox; - glBlitFramebuffer(0, 0, mWidth, mHeight, - box->left, box->top, box->width + box->left, box->height + box->top, - GL_COLOR_BUFFER_BIT, GL_NEAREST); - - if ((gl.flags & RFL_INVALIDATE_BUFFER) != 0) - { - GLenum attachments[2] = { GL_COLOR_ATTACHMENT0, GL_DEPTH_STENCIL_ATTACHMENT }; - glInvalidateFramebuffer(GL_READ_FRAMEBUFFER, 2, attachments); - } - - glBindFramebuffer(GL_READ_FRAMEBUFFER, 0); - glBindFramebuffer(GL_DRAW_FRAMEBUFFER, 0); -} - void FGLRenderBuffers::BindEyeTexture(int eye, int texunit) { CreateEyeBuffers(eye); diff --git a/src/gl/renderer/gl_renderbuffers.h b/src/gl/renderer/gl_renderbuffers.h index 043cb8852..5fe05f5ac 100644 --- a/src/gl/renderer/gl_renderbuffers.h +++ b/src/gl/renderer/gl_renderbuffers.h @@ -43,7 +43,6 @@ public: void BindOutputFB(); void BlitToEyeTexture(int eye); - void BlitFromEyeTexture(int eye, GL_IRECT* box); void BindEyeTexture(int eye, int texunit); void BindEyeFB(int eye, bool readBuffer = false);