Avoid sRGB usage when targeting an incapable FBO
authorLaszlo Agocs <laszlo.agocs@digia.com>
Mon, 19 Jan 2015 17:06:07 +0000 (18:06 +0100)
committerLaszlo Agocs <laszlo.agocs@theqtcompany.com>
Mon, 26 Jan 2015 13:55:41 +0000 (14:55 +0100)
commit15ffff51b5cc92eb875785bbd16b6385638fe5dd
treebda3fff6ed65a24b840a35d14ee4f2a15cab839c
parent47c089d15f79cd678e0c9de5c7fb5b5e2488a9f5
Avoid sRGB usage when targeting an incapable FBO

Native text rendering results in very different output on OS X
with QQuickWidget/QOpenGLWidget. When targeting an FBO, enabling
sRGB is futile if the FBO was not created with the correct format.
In this case we need to disable the usage of sRGB.

Task-number: QTBUG-42861
Change-Id: I887482e70be2cbfba40d6758546128d03b36def1
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
Reviewed-by: Jørgen Lind <jorgen.lind@theqtcompany.com>
src/quick/scenegraph/qsgdefaultglyphnode_p.cpp