Avoid setting unnecessary parameters in QOpenGLWidget
authorLaszlo Agocs <laszlo.agocs@digia.com>
Thu, 15 May 2014 17:00:15 +0000 (19:00 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 16 May 2014 08:04:06 +0000 (10:04 +0200)
commit72558e810d9b3493dabfc936fa6c8bf3c3f3b49c
tree7dc326031232af06d7f3152b45984aa9e5fc7db2
parente26ed09102e2eb350eb072decbd670b7d515be45
Avoid setting unnecessary parameters in QOpenGLWidget

QOpenGLFramebufferObject sets the texture parameters already, do
not set them again. Especially not GL_REPEAT, which is wrong and
breaks on devices that do not support REPEAT on NPOT textures.
What QOpenGLFramebufferObject does is just fine (it sets NEAREST/
NEAREST and CLAMP_TO_EDGE).

This is important for WebEngine where the QWidget-based web view
is using QOpenGLWidget.

Change-Id: I264d30118ce7adf50f68f2c7b9a5599a406b4362
Reviewed-by: Jørgen Lind <jorgen.lind@digia.com>
src/widgets/kernel/qopenglwidget.cpp