summaryrefslogtreecommitdiffstats
path: root/src/opengl/qglextensions.cpp
diff options
context:
space:
mode:
authorKim Motoyoshi Kalland <kim.kalland@nokia.com>2009-09-08 12:30:19 (GMT)
committerKim Motoyoshi Kalland <kim.kalland@nokia.com>2009-09-16 08:11:40 (GMT)
commitb8ff02a67ebd8246253823b53cfed98eef400547 (patch)
tree011c1ea8b6d860e5a43824caa6903977394048ad /src/opengl/qglextensions.cpp
parent120329adb47dba60f532c1c2fd2ad0f37b812437 (diff)
downloadQt-b8ff02a67ebd8246253823b53cfed98eef400547.zip
Qt-b8ff02a67ebd8246253823b53cfed98eef400547.tar.gz
Qt-b8ff02a67ebd8246253823b53cfed98eef400547.tar.bz2
Added support for subpixel antialiasing on text in the GL2 engine.
The antialiasing is currently not gamma corrected. Reviewed-by: Samuel
Diffstat (limited to 'src/opengl/qglextensions.cpp')
-rw-r--r--src/opengl/qglextensions.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/opengl/qglextensions.cpp b/src/opengl/qglextensions.cpp
index 3699d62..c785d8a 100644
--- a/src/opengl/qglextensions.cpp
+++ b/src/opengl/qglextensions.cpp
@@ -391,8 +391,9 @@ bool qt_resolve_version_2_0_functions(QGLContext *ctx)
if (glStencilOpSeparate)
return gl2supported;
+ glBlendColor = (_glBlendColor) ctx->getProcAddress(QLatin1String("glBlendColor"));
glStencilOpSeparate = (_glStencilOpSeparate) ctx->getProcAddress(QLatin1String("glStencilOpSeparate"));
- if (!glStencilOpSeparate)
+ if (!glBlendColor || !glStencilOpSeparate)
gl2supported = false;
return gl2supported;