diff options
author | Tor Lillqvist <tml@collabora.com> | 2016-01-13 14:52:05 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2016-01-13 15:07:55 +0200 |
commit | 4a846b9b93b89152b8f74f3dfc893441ae1347b8 (patch) | |
tree | d321cca6a0357afabe1e47d66509ac3e9a763de9 | |
parent | 37c35bc263b46edb5881cc9eb824d3eb432c0441 (diff) |
We only use the prev pointer
(Why not use a std::list? Maybe there is some reason.)
Change-Id: I09010726e9fe45cfa0f530a085c48ec8d3d02cfb
-rw-r--r-- | vcl/inc/opengl/framebuffer.hxx | 1 | ||||
-rw-r--r-- | vcl/opengl/framebuffer.cxx | 3 | ||||
-rw-r--r-- | vcl/source/opengl/OpenGLContext.cxx | 1 |
3 files changed, 1 insertions, 4 deletions
diff --git a/vcl/inc/opengl/framebuffer.hxx b/vcl/inc/opengl/framebuffer.hxx index 7acd7105d86f..9f94a8f43000 100644 --- a/vcl/inc/opengl/framebuffer.hxx +++ b/vcl/inc/opengl/framebuffer.hxx @@ -41,7 +41,6 @@ public: public: OpenGLFramebuffer* mpPrevFramebuffer; - OpenGLFramebuffer* mpNextFramebuffer; }; #endif // INCLUDED_VCL_INC_OPENGL_FRAMEBUFFER_H diff --git a/vcl/opengl/framebuffer.cxx b/vcl/opengl/framebuffer.cxx index 215eadf1312d..aa20a9382b52 100644 --- a/vcl/opengl/framebuffer.cxx +++ b/vcl/opengl/framebuffer.cxx @@ -18,8 +18,7 @@ OpenGLFramebuffer::OpenGLFramebuffer() : mnWidth( 0 ), mnHeight( 0 ), mnAttachedTexture( 0 ), - mpPrevFramebuffer( nullptr ), - mpNextFramebuffer( nullptr ) + mpPrevFramebuffer( nullptr ) { glGenFramebuffers( 1, &mnId ); CHECK_GL_ERROR(); diff --git a/vcl/source/opengl/OpenGLContext.cxx b/vcl/source/opengl/OpenGLContext.cxx index d70d27e7d242..f409bec72d01 100644 --- a/vcl/source/opengl/OpenGLContext.cxx +++ b/vcl/source/opengl/OpenGLContext.cxx @@ -1649,7 +1649,6 @@ OpenGLFramebuffer* OpenGLContext::AcquireFramebuffer( const OpenGLTexture& rText if( mpLastFramebuffer ) { pFramebuffer->mpPrevFramebuffer = mpLastFramebuffer; - mpLastFramebuffer->mpNextFramebuffer = pFramebuffer; mpLastFramebuffer = pFramebuffer; } else |