diff options
author | Samuel Rødal <sroedal@trolltech.com> | 2009-09-04 11:20:52 (GMT) |
---|---|---|
committer | Samuel Rødal <sroedal@trolltech.com> | 2009-09-04 11:30:08 (GMT) |
commit | 9d85dcf10d580a45c261e3e1a8d8df7d41cb9437 (patch) | |
tree | e76fdbf00784369987304df12a03bf38801566fc /src/opengl/qglpixmapfilter.cpp | |
parent | 74cb4b7ca71e64d08fab7d4e00a15e29fa339f5b (diff) | |
download | Qt-9d85dcf10d580a45c261e3e1a8d8df7d41cb9437.zip Qt-9d85dcf10d580a45c261e3e1a8d8df7d41cb9437.tar.gz Qt-9d85dcf10d580a45c261e3e1a8d8df7d41cb9437.tar.bz2 |
Slightly improved QGLFramebufferObjectFormat API.
Renaming setInternalFormat() to setInternalTextureFormat() (and
similarly for the accessor) makes the API a bit more explicit.
Reviewed-by: Trond
Diffstat (limited to 'src/opengl/qglpixmapfilter.cpp')
-rw-r--r-- | src/opengl/qglpixmapfilter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opengl/qglpixmapfilter.cpp b/src/opengl/qglpixmapfilter.cpp index 56e5baa..68db9c0 100644 --- a/src/opengl/qglpixmapfilter.cpp +++ b/src/opengl/qglpixmapfilter.cpp @@ -324,7 +324,7 @@ bool QGLPixmapBlurFilter::processGL(QPainter *painter, const QPointF &pos, const filter->setSource(generateBlurShader(radius(), quality() == Qt::SmoothTransformation)); QGLFramebufferObjectFormat format; - format.setInternalFormat(GLenum(src.hasAlphaChannel() ? GL_RGBA : GL_RGB)); + format.setInternalTextureFormat(GLenum(src.hasAlphaChannel() ? GL_RGBA : GL_RGB)); QGLFramebufferObject *fbo = qgl_fbo_pool()->acquire(src.size(), format); if (!fbo) |