qt5base-lts/src
Tor Arne Vestbø 87d08acf40 iOS: Set context and bind FBO before allocating render-buffer storage
defaultFramebufferObject() may be called from anywhere, at any point,
not just makeCurrent(). One example is the glyph-cache, which uses it
to re-bind the default FBO after generating the texture cache.

If the default FBO had already been created, but the render-buffer was
out of sync with the window size, we would end up in the resize code
without the correct context current, and without the render-buffer's
owning FBO bound. This caused "Failed to make complete framebuffer
object 8cd7" warnings at runtime.

We now make the context current and bind the FBO, even though it might
already be bound and the context current from makeCurrent(), or when
initially creating the FBO. For the future we should move the whole
resize logic out of defaultFramebufferObject() and call it from
makeCurrent(), or possibly [EAGLView layoutSubviews]. That's a
higher impact change though, which we reserve for the 'dev' branch.

Change-Id: I50ea949c12a02ad1af6ec9fdc3215d5da85b324f
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>
2013-05-07 14:19:04 +02:00
..
3rdparty Fix more warnings, found by cross-compiling Qt 2013-05-01 08:48:13 +02:00
android Enable bundling Qt in Android package in build system 2013-05-01 11:24:15 +02:00
angle Add missing intrin.h include for __cpuid 2013-04-23 12:45:16 +02:00
concurrent Doc: Give C++ class lists consistent titles 2013-04-29 19:01:48 +02:00
corelib QLocale: cache the QLocalePrivate for the default QLocale 2013-05-01 23:05:35 +02:00
dbus Doc: Fix module name in .qdocconf 2013-04-26 14:18:16 +02:00
gui Don't use GL_REPEAT for image-brush drawing on OpenGL ES2 2013-05-07 14:18:58 +02:00
network Enable bundling Qt in Android package in build system 2013-05-01 11:24:15 +02:00
opengl Doc: Give C++ class lists consistent titles 2013-04-29 19:01:48 +02:00
openglextensions Make sure that we #include qconfig.h before testing for features. 2013-03-19 07:02:57 +01:00
platformsupport Fix QFontConfigDatabase crash 2013-05-01 23:05:35 +02:00
plugins iOS: Set context and bind FBO before allocating render-buffer storage 2013-05-07 14:19:04 +02:00
printsupport QPrinter - Fix doc errors 2013-04-12 11:46:01 +02:00
sql Enable bundling Qt in Android package in build system 2013-05-01 11:24:15 +02:00
testlib Fix more warnings, found by cross-compiling Qt 2013-05-01 08:48:13 +02:00
tools qdoc: Config class uses current path for each path var 2013-04-30 12:45:30 +02:00
widgets Enable bundling Qt in Android package in build system 2013-05-01 11:24:15 +02:00
winmain fix path adjustments in installed metafiles 2013-01-30 15:43:00 +01:00
xml Mark as unused the private members that aren't and CANNOT be used 2013-04-15 15:32:40 +02:00
src.pro make bootstrapping of qdoc optional 2013-04-03 00:37:48 +02:00