summaryrefslogtreecommitdiffstats
path: root/src/opengl/qgl_qpa.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright year to 2011.Rohan McGovern2011-03-101-1/+1
| | | | | Reviewed-by: Trust Me (cherry picked from commit 774a3536b00c4d6e4c4c10b708e31b4373a338e3)
* Make QGLContext::fromPlatformGLContext show correct sharingJørgen Lind2011-01-251-16/+14
| | | | | | | information. Prior to this, if a context was created with QGLWidget it would setup the sharing correct, but all sharing actually created on a QPlatformGLContext level was ignored by the QGLContext, thus indicating that it wasnt sharing with any other context.
* Remove Lighthouse specific code in QGLWidget constructorJørgen Lind2011-01-041-5/+0
| | | | | | | | | truth to be told, I can't remember why I decided that it was a good idea to have the code there. But clearly now I don't think so anymore. Such initialisation should happen in qgl_qpa.cpp chooseContext. If we tear down the window and the context then that has to be solved elsewhere.
* Make QtOpenGL use shared contextexts on LighthouseJørgen Lind2010-11-261-8/+25
|
* Move the Lighthouse specfic api into qpa_qpa.cppJørgen Lind2010-11-261-0/+20
| | | | and ifdef the functions in qgl.h
* Lighthouse: Fix QGLContext::currentContext for systems with limitedJørgen Lind2010-11-241-10/+10
| | | | | | | | | | | | resources. The example plugins EGLFS uses only 1 native context. Make sure that we only use this 1 context, and that we dont wrap it in many different QPlatformGLContexts or QGLContexts instanses. This change also removes the QPlatformWindow link which was made in the initial QPlatformGLContext change. Lighthouse has to support situations where a context isnt bound to a QPlatformWindow. Reviewed-by: gunnar
* Lighthouse: move the currentContext functionality to QPlatformGLContextJørgen Lind2010-11-221-7/+15
| | | | | | | | | This means the threading functionality has been delegated down to QPlatformGLContext. However, it is still possible to use QGLContext::currentContext to retrieve the QGLContext. This so that QGLFunctions, QGLShaderProgram etc can be used without a QGLWidget. Reviewed-by: paul
* No more windowsurface for QGLWidget in LighthouseJørgen Lind2010-11-221-0/+1
| | | | Reviewed-by: paul
* Add workaround_brokenFBOReadback=true for maliGunnar Sletta2010-11-191-0/+9
|
* Revert "Allow customizing the default fbo from the QPlatformGLContext."Jørgen Lind2010-08-111-1/+0
| | | | | | | | | This reverts commit a8530e5db7ae25ea0ab5df4681308374abf8b6ba. Conflicts: src/gui/kernel/qplatformglcontext_qpa.cpp src/gui/kernel/qplatformglcontext_qpa.h
* Added reduced config to glxconfigJørgen Lind2010-08-061-4/+10
| | | | | | should help if there are not many glxconfigs available. Also made QGLTemporaryContext use a QWidget again instead of a QGLWidget; This allows us to ask for a smaller window size before making the context.
* Add missing null check to lighthouse's QGLTemporaryContext.Christian Kamm2010-08-061-2/+4
| | | | Reviewed-by: Jørgen Lind
* Fixed Lighthouse tempcontext to reset to current contextJørgen Lind2010-08-061-5/+8
| | | | | and made glxintegrations shared context use the correct window configuration
* Allow customizing the default fbo from the QPlatformGLContext.Christian Kamm2010-08-061-0/+1
| | | | Reviewed-by: Jørgen Lind
* Make the GLX integration give more correct formatJørgen Lind2010-08-061-1/+2
| | | | Also create a correct window for the format.
* Forgot to makeCurrent before QGLWidget::resizeGL in LighthouseJørgen Lind2010-08-041-0/+1
|
* Make QWidget::setPlatformWindowFormat recreate platformWindowJørgen Lind2010-08-041-10/+19
| | | | | if the platformWindow is visible. Also had to make sure that the QGLContext of a QGLWidget was recreated.
* Make it possible to view what format a QPlatformGlContext hasJørgen Lind2010-08-031-0/+1
| | | | | | | | QPlatformGlContext has now a pure virtual format getter. The way its intended to work is that the tlw has a QPlatformWindowFormat which is the requested format. Once you get the QPlatformGlContext of the window, you can request the QPlatformWindowFormat of the context to see what you really got.
* Added QGLFormat to QPlatformWindowFormat conversionJørgen Lind2010-07-271-4/+66
|
* fix QGLContext::reset in lighthouseJørgen Lind2010-07-261-2/+4
|
* Make it possible to have shared contexts to LighthouseJørgen Lind2010-07-231-0/+3
| | | | | | | | This adds a getter to QPlatformGLContext for the "default shared context". The setter is protected as it is the plugins responsibillity to create it or not. QPlatformWindowFormat has also gotten a pointer to a QPlatformGLContext for a non default shared context. Only implemented shared contexts in testlite for now.
* Fix deletion of QPlatformGLContextJørgen Lind2010-07-081-1/+1
| | | | | it is owned by the QPlatformWindow, and should thus be delted by it, even for QGLContext
* Make tempcontext use new lighthouse apiJørgen Lind2010-07-081-3/+5
|
* Renamed files from *_lite* to *_qpa*Jørgen Lind2010-06-241-0/+253