mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-03 12:50:45 +02:00
glx: Enable copy subbuffer patch when GLX_DIRECT_RENDERING is #defined
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
This commit is contained in:
parent
c88fc26ac9
commit
2235b1c72d
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue