diff options
Diffstat (limited to 'include/vcl/opengl/OpenGLHelper.hxx')
-rw-r--r-- | include/vcl/opengl/OpenGLHelper.hxx | 9 |
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(); |