diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/glx/xfont.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/glx/xfont.c b/src/glx/xfont.c index a086b7a03ef..00498bc3ea4 100644 --- a/src/glx/xfont.c +++ b/src/glx/xfont.c @@ -221,7 +221,10 @@ DRI_glXUseXFont(struct glx_context *CC, Font font, int first, int count, int lis XGCValues values; unsigned long valuemask; XFontStruct *fs; + +#if !defined(GLX_USE_APPLEGL) __GLXDRIdrawable *glxdraw; +#endif GLint swapbytes, lsbfirst, rowlength; GLint skiprows, skippixels, alignment; @@ -234,9 +237,11 @@ DRI_glXUseXFont(struct glx_context *CC, Font font, int first, int count, int lis dpy = CC->currentDpy; win = CC->currentDrawable; +#if !defined(GLX_USE_APPLEGL) glxdraw = GetGLXDRIDrawable(CC->currentDpy, CC->currentDrawable); if (glxdraw) win = glxdraw->xDrawable; +#endif fs = XQueryFont(dpy, font); if (!fs) { |