diff options
author | Louis-Francis Ratté-Boulianne <lfrb@collabora.com> | 2014-12-04 22:25:56 -0500 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-12-11 07:57:33 +0100 |
commit | 01bed8089af907e7c0fb8e053d55bffb1eb81aac (patch) | |
tree | aa8d3a819d0acb388ef2d6785a0dbc8098386178 /vcl/inc | |
parent | 4c424d785275494835287aa3c171ee2fd5c4f884 (diff) |
vcl: Re-use a framebuffer of the same size when possible
Conflicts:
include/vcl/opengl/OpenGLContext.hxx
Change-Id: Id9c7932976ce9d9282776c20d93d9cca4d290056
Diffstat (limited to 'vcl/inc')
-rw-r--r-- | vcl/inc/opengl/framebuffer.hxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/inc/opengl/framebuffer.hxx b/vcl/inc/opengl/framebuffer.hxx index 4ccc1c5728ea..e9c9065f1edc 100644 --- a/vcl/inc/opengl/framebuffer.hxx +++ b/vcl/inc/opengl/framebuffer.hxx @@ -20,12 +20,16 @@ class VCL_PLUGIN_PUBLIC OpenGLFramebuffer private: GLuint mnId; OpenGLTexture maAttachedTexture; + int mnWidth; + int mnHeight; public: OpenGLFramebuffer(); virtual ~OpenGLFramebuffer(); GLuint Id() const { return mnId; }; + int GetWidth() const { return mnWidth; }; + int GetHeight() const { return mnHeight; }; void Bind(); void Unbind(); |