summaryrefslogtreecommitdiffstats
path: root/src/opengl/qgl_x11.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/opengl/qgl_x11.cpp')
-rw-r--r--src/opengl/qgl_x11.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/opengl/qgl_x11.cpp b/src/opengl/qgl_x11.cpp
index 51daa176b..724e999e4 100644
--- a/src/opengl/qgl_x11.cpp
+++ b/src/opengl/qgl_x11.cpp
@@ -867,11 +867,7 @@ void qgl_use_font(TQFontEngineXft *engine, int first, int count, int listBase)
#if 0 // disable antialias support for now
XftPatternGetBool(engine->pattern(), XFT_ANTIALIAS, 0, &antialiased);
#endif
-#ifdef QT_XFT2
FT_Face face = XftLockFace(engine->font());
-#else
- FT_Face face = engine->face();
-#endif
// start generating font glyphs
for (int i = first; i < count; ++i) {
int list = listBase + i;
@@ -934,9 +930,7 @@ void qgl_use_font(TQFontEngineXft *engine, int first, int count, int listBase)
antialiased ? delete[] aa_glyph : delete[] ua_glyph;
}
-#ifdef QT_XFT2
XftUnlockFace(engine->font());
-#endif
// restore pixel unpack settings
glPixelStorei(GL_UNPACK_SWAP_BYTES, gl_swapbytes);