Re-order begin() so everything needing a current context has one
authorTom Cooksey <thomas.cooksey@nokia.com>
Thu, 10 Sep 2009 13:56:11 +0000 (15:56 +0200)
committerTom Cooksey <thomas.cooksey@nokia.com>
Thu, 10 Sep 2009 14:06:58 +0000 (16:06 +0200)
commita21b661384c31e6c9154a99690b2d134a12b9187
tree6bf37bcdda9f15f16cec716c8fdaca4e85e3f3a7
parent56ac253d0668c5ea9227a07699c31beb2b8034a1
Re-order begin() so everything needing a current context has one

It should be up to QGLPaintDevice::beginPaint() to make the correct
context current, so everything needing a current context needs to be
moved after that call.

This patch also modifies QGLPixmapData to use QGLContext::drawTexture
rather than the GL2 PE's drawTexture, which shouldn't be called inside
beginPaint as the paint engine hasn't been fully initialised yet.

Reviewed-by: Eskil
src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp
src/opengl/qpixmapdata_gl.cpp