summaryrefslogtreecommitdiff
path: root/include/vcl/opengl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-07-18 15:03:30 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-07-19 08:09:41 +0200
commite69da79dc00db42411354d36c28e30f840191acf (patch)
tree82aca7c2da20157ad3cb2f104a3297457ccd291f /include/vcl/opengl
parent1e9bde7825a5b63c0f1502bd3ebf5173bdf57111 (diff)
loplugin:constantparam
Change-Id: I8e2e9009f0a70d2fa390e03688a988ac935d5f36 Reviewed-on: https://gerrit.libreoffice.org/57643 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/vcl/opengl')
-rw-r--r--include/vcl/opengl/OpenGLHelper.hxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/vcl/opengl/OpenGLHelper.hxx b/include/vcl/opengl/OpenGLHelper.hxx
index 26b293262ae3..1502fc5d1ebb 100644
--- a/include/vcl/opengl/OpenGLHelper.hxx
+++ b/include/vcl/opengl/OpenGLHelper.hxx
@@ -64,17 +64,18 @@ public:
/**
* The caller is responsible for deleting the buffer objects identified by
- * nFramebufferId, nRenderbufferDepthId and nRenderbufferColorId
+ * nFramebufferId, nRenderbufferDepthId and nRenderbufferColorId.
+ * This create a buffer for rendering to texture and should be freed with
+ * glDeleteTextures.
+ *
* @param nWidth Width of frame
* @param nHeight Height of frame
* @param nFramebufferId FrameBuffer ID
* @param nRenderbufferDepthId RenderBuffer's depth ID
* @param nRenderbufferColorId RenderBuffer's color ID
- * @param bRenderbuffer true => off-screen rendering, false => rendering to texture
- * This also affects whether to free with glDeleteRenderbuffers or glDeleteTextures
*/
static void createFramebuffer(long nWidth, long nHeight, GLuint& nFramebufferId,
- GLuint& nRenderbufferDepthId, GLuint& nRenderbufferColorId, bool bRenderbuffer = true);
+ GLuint& nRenderbufferDepthId, GLuint& nRenderbufferColorId);
/// Get OpenGL version (needs a context)
static float getGLVersion();