summaryrefslogtreecommitdiff
path: root/vcl/opengl/framebuffer.cxx
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2016-07-28 21:45:56 +0900
committerTomaž Vajngerl <quikee@gmail.com>2016-10-19 08:08:51 +0000
commit94b6b4678b4736b6f4974ec8ee73df5c11ff06d1 (patch)
tree51b870d0cc7e6abae3069a673bd6a3c71ce48709 /vcl/opengl/framebuffer.cxx
parent877774c05731b7505a3d3a947a1dcb528f36df41 (diff)
opengl: blit offscreen framebuffer instead of drawing
Change-Id: I3ab0da9cf83e0e85b8442b34ecd6eb91dd3d1bd3 Reviewed-on: https://gerrit.libreoffice.org/27875 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'vcl/opengl/framebuffer.cxx')
-rw-r--r--vcl/opengl/framebuffer.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/opengl/framebuffer.cxx b/vcl/opengl/framebuffer.cxx
index aa20a9382b52..cb91ea482b79 100644
--- a/vcl/opengl/framebuffer.cxx
+++ b/vcl/opengl/framebuffer.cxx
@@ -32,16 +32,16 @@ OpenGLFramebuffer::~OpenGLFramebuffer()
CHECK_GL_ERROR();
}
-void OpenGLFramebuffer::Bind()
+void OpenGLFramebuffer::Bind(GLenum eTarget)
{
VCL_GL_INFO( "Binding framebuffer " << (int)mnId );
- glBindFramebuffer( GL_FRAMEBUFFER, mnId );
+ glBindFramebuffer(eTarget, mnId);
CHECK_GL_ERROR();
}
-void OpenGLFramebuffer::Unbind()
+void OpenGLFramebuffer::Unbind(GLenum eTarget)
{
- glBindFramebuffer( GL_FRAMEBUFFER, 0 );
+ glBindFramebuffer(eTarget, 0);
CHECK_GL_ERROR();
VCL_GL_INFO( "Binding default framebuffer" );
}