summaryrefslogtreecommitdiffstats
path: root/src/opengl/qwindowsurface_gl.cpp
diff options
context:
space:
mode:
authorSamuel Rødal <sroedal@trolltech.com>2009-09-04 11:20:52 (GMT)
committerSamuel Rødal <sroedal@trolltech.com>2009-09-04 11:30:08 (GMT)
commit9d85dcf10d580a45c261e3e1a8d8df7d41cb9437 (patch)
treee76fdbf00784369987304df12a03bf38801566fc /src/opengl/qwindowsurface_gl.cpp
parent74cb4b7ca71e64d08fab7d4e00a15e29fa339f5b (diff)
downloadQt-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/qwindowsurface_gl.cpp')
-rw-r--r--src/opengl/qwindowsurface_gl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opengl/qwindowsurface_gl.cpp b/src/opengl/qwindowsurface_gl.cpp
index f974938..a85b9ae 100644
--- a/src/opengl/qwindowsurface_gl.cpp
+++ b/src/opengl/qwindowsurface_gl.cpp
@@ -569,7 +569,7 @@ void QGLWindowSurface::updateGeometry()
QGLFramebufferObjectFormat format;
format.setAttachment(QGLFramebufferObject::CombinedDepthStencil);
- format.setInternalFormat(GLenum(GL_RGBA));
+ format.setInternalTextureFormat(GLenum(GL_RGBA));
format.setTextureTarget(target);
if (QGLExtensions::glExtensions & QGLExtensions::FramebufferBlit)