glx: Enable copy subbuffer patch when GLX_DIRECT_RENDERING is #defined
authorKristian Høgsberg <krh@bitplanet.net>
Mon, 26 Jul 2010 19:50:02 +0000 (15:50 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Mon, 26 Jul 2010 19:52:45 +0000 (15:52 -0400)
Depending on __DRI_COPY_SUB_BUFFER doesn't work when we no longer include
dri_interface.h.

https://bugs.freedesktop.org/show_bug.cgi?id=29264

src/glx/glxcmds.c

index b92638c9c2213f6821ff79f99a0d5c20d7dfdfd7..cc1197b504aba283cee6ec1262a6d7a70e4a5308 100644 (file)
@@ -2575,7 +2575,9 @@ __glXCopySubBufferMESA(Display * dpy, GLXDrawable drawable,
    INT32 *x_ptr, *y_ptr, *w_ptr, *h_ptr;
    CARD8 opcode;
 
-#ifdef __DRI_COPY_SUB_BUFFER
+   fprintf(stderr, "copy sub: %d,%d %dx%d\n", x, y , width, height);
+
+#if defined(GLX_DIRECT_RENDERING) && !defined(GLX_USE_APPLEGL)
    __GLXDRIdrawable *pdraw = GetGLXDRIDrawable(dpy, drawable);
    if (pdraw != NULL) {
       __GLXscreenConfigs *psc = pdraw->psc;