diff options
author | Samuel Rødal <sroedal@trolltech.com> | 2009-09-15 10:27:37 (GMT) |
---|---|---|
committer | Samuel Rødal <sroedal@trolltech.com> | 2009-09-15 10:46:41 (GMT) |
commit | af1cfbc945c7c01adea09d3d369699f4dd0daab9 (patch) | |
tree | 24a9f3e32e12955d2a1a725dc54d6e0604ed50bb /src/opengl/gl2paintengineex | |
parent | f60e8c21c1d031daa8984461f9e5a6988e3ce2e7 (diff) | |
download | Qt-af1cfbc945c7c01adea09d3d369699f4dd0daab9.zip Qt-af1cfbc945c7c01adea09d3d369699f4dd0daab9.tar.gz Qt-af1cfbc945c7c01adea09d3d369699f4dd0daab9.tar.bz2 |
Fixed rendering errors in blurpicker with -graphicssystem opengl
1) Need to transfer to brush drawing mode when switching active engine,
to make sure we reset the vertex / texture coordinate pointers for image
drawing.
2) QGLPixmapGLPaintDevice::beginPaint() was changed to use
QGLContext::drawTexture() for blitting the old texture contents to the
render FBO, which means that we also need to set up viewport, modelview,
and projection matrices, and ensure that clipping / stencil testing
is disabled.
3) Make sure stencil testing is disabled when clearing the FBO.
Reviewed-by: Tom
Diffstat (limited to 'src/opengl/gl2paintengineex')
-rw-r--r-- | src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp b/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp index 5e790cf..e41d0b4 100644 --- a/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp +++ b/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp @@ -1385,6 +1385,7 @@ void QGL2PaintEngineEx::ensureActive() d->device->ensureActiveTarget(); if (d->needsSync) { + d->transferMode(BrushDrawingMode); glViewport(0, 0, d->width, d->height); glDepthMask(false); glDepthFunc(GL_LESS); |