diff options
author | Samuel Rødal <[email protected]> | 2011-09-07 10:31:03 +0200 |
---|---|---|
committer | Paul Olav Tvete <[email protected]> | 2011-09-08 11:07:56 +0200 |
commit | 1b1831500142c995137f5e4b1bc03d21aa08e1e1 (patch) | |
tree | 5fcd21ee23c37fbe3466fde353d0bcfd09a051e2 /examples/opengl/paintedwindow/main.cpp | |
parent | 68974d8e647febb80a47d9cf6ce9452f3ce4fa21 (diff) |
Improved and made public the QOpenGLPaintDevice API.
The new API is more flexible, allowing the use of QOpenGLPaintDevice
with any QOpenGLContext, and putting more responsibility on the user for
ensuring the correct FBO is current (the user knows best anyhow).
Task-number: QTBUG-21263
Change-Id: I50b954125f552baef52fbb3fe2ed907a11ad519c
Reviewed-on: http://codereview.qt-project.org/4325
Reviewed-by: Qt Sanity Bot <[email protected]>
Reviewed-by: Paul Olav Tvete <[email protected]>
Diffstat (limited to 'examples/opengl/paintedwindow/main.cpp')
-rw-r--r-- | examples/opengl/paintedwindow/main.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/examples/opengl/paintedwindow/main.cpp b/examples/opengl/paintedwindow/main.cpp index c77cf41f0f8..345cea7bc5b 100644 --- a/examples/opengl/paintedwindow/main.cpp +++ b/examples/opengl/paintedwindow/main.cpp @@ -12,10 +12,6 @@ int main(int argc, char **argv) QRect screenGeometry = screen->availableGeometry(); - QSurfaceFormat format; - format.setDepthBufferSize(16); - format.setSamples(4); - QPoint center = screenGeometry.center(); QRect windowRect(0, 0, 640, 480); |