diff options
author | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-12-06 23:38:24 (GMT) |
---|---|---|
committer | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-12-06 23:42:29 (GMT) |
commit | f34cfa14ff6b0928f98143f72e1f512eceabe27c (patch) | |
tree | 5bef9f51e2d525e043dabb6f5ce6a4965f6c5b23 /src/opengl/qpaintengine_opengl.cpp | |
parent | 517e50706b154254bb2b51f19b8678c6a8df2590 (diff) | |
download | Qt-f34cfa14ff6b0928f98143f72e1f512eceabe27c.zip Qt-f34cfa14ff6b0928f98143f72e1f512eceabe27c.tar.gz Qt-f34cfa14ff6b0928f98143f72e1f512eceabe27c.tar.bz2 |
Replace glColor4ub() calls with glColor4f()
Intel Q45/Q43 Express Chipset has problems with glColor4ub()
not updating GL_CURRENT_COLOR correctly. Replace all references
with calls to glColor4f() instead as it is more likely to be
implemented correctly on all chipsets.
Task-number: QTBUG-6217
Reviewed-by: Sarah Smith
Diffstat (limited to 'src/opengl/qpaintengine_opengl.cpp')
-rw-r--r-- | src/opengl/qpaintengine_opengl.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/opengl/qpaintengine_opengl.cpp b/src/opengl/qpaintengine_opengl.cpp index e7251e8..4823408 100644 --- a/src/opengl/qpaintengine_opengl.cpp +++ b/src/opengl/qpaintengine_opengl.cpp @@ -113,11 +113,7 @@ static bool DEBUG_TEMP_FLAG; static inline void qt_glColor4ubv(unsigned char *col) { -#ifdef QT_OPENGL_ES - glColor4f(col[0]/255.0, col[1]/255.0, col[2]/255.0, col[3]/255.0); -#else - glColor4ubv(col); -#endif + glColor4f(col[0]/255.0f, col[1]/255.0f, col[2]/255.0f, col[3]/255.0f); } struct QT_PointF { |