Symbian: allow apps to disable GL multisampling
authormread <qt-info@nokia.com>
Mon, 5 Dec 2011 13:30:31 +0000 (13:30 +0000)
committermread <qt-info@nokia.com>
Mon, 5 Dec 2011 14:54:20 +0000 (14:54 +0000)
commitbe08fa8280d95c2edda7e2aaee6a5211062b0090
tree2122f813a270ecc1928ed46123137202bcd57e3a
parent147ea1d18482c1f64749db52c622dded075dc66c
Symbian: allow apps to disable GL multisampling

On Symbian, QML apps had no way to disable GL multisampling if the
hardware supported it. This caused some apps to run out of graphics
memory and fail.

This change adds a way for apps to indicate that they don't want
multisampling, by setting an environment variable. For example:
  qputenv("QT_SYMBIAN_DISABLE_GL_MULTISAMPLE", "1");

This non-public API style was used as the use case is platform and
application specific, and not appropriate for public API.

Task-number: ou1cimx1#947771
Reviewed-by: Gareth Stockwell
src/opengl/qgl_symbian.cpp