projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
glx: Prepare driFetchDrawable for no-config contexts
[mesa.git]
/
src
/
glx
/
glx_pbuffer.c
diff --git
a/src/glx/glx_pbuffer.c
b/src/glx/glx_pbuffer.c
index 933b5d9ecd1f446b1be8826ff7df7ac80f00c55c..fd3327f12099b78eb4827bb6c69c94cbe6331647 100644
(file)
--- a/
src/glx/glx_pbuffer.c
+++ b/
src/glx/glx_pbuffer.c
@@
-272,9
+272,9
@@
DestroyDRIDrawable(Display *dpy, GLXDrawable drawable, int destroy_xdrawable)
* 10. Given that, this routine should try to use an array on the stack to
* capture the reply rather than always calling Xmalloc.
*/
* 10. Given that, this routine should try to use an array on the stack to
* capture the reply rather than always calling Xmalloc.
*/
-
static
int
-GetDrawableAttribute(Display * dpy, GLXDrawable drawable,
- int attribute, unsigned int *value)
+int
+
__glX
GetDrawableAttribute(Display * dpy, GLXDrawable drawable,
+
int attribute, unsigned int *value)
{
struct glx_display *priv;
xGLXGetDrawableAttributesReply reply;
{
struct glx_display *priv;
xGLXGetDrawableAttributesReply reply;
@@
-825,7
+825,7
@@
glXQueryDrawable(Display * dpy, GLXDrawable drawable,
}
}
#else
}
}
#else
- GetDrawableAttribute(dpy, drawable, attribute, value);
+
__glX
GetDrawableAttribute(dpy, drawable, attribute, value);
#endif
}
#endif
}
@@
-838,7
+838,7
@@
_GLX_PUBLIC int
glXQueryGLXPbufferSGIX(Display * dpy, GLXPbufferSGIX drawable,
int attribute, unsigned int *value)
{
glXQueryGLXPbufferSGIX(Display * dpy, GLXPbufferSGIX drawable,
int attribute, unsigned int *value)
{
- return GetDrawableAttribute(dpy, drawable, attribute, value);
+ return
__glX
GetDrawableAttribute(dpy, drawable, attribute, value);
}
#endif
}
#endif
@@
-909,7
+909,7
@@
glXGetSelectedEvent(Display * dpy, GLXDrawable drawable, unsigned long *mask)
* we could just type-cast the pointer, but why?
*/
* we could just type-cast the pointer, but why?
*/
- GetDrawableAttribute(dpy, drawable, GLX_EVENT_MASK_SGIX, &value);
+
__glX
GetDrawableAttribute(dpy, drawable, GLX_EVENT_MASK_SGIX, &value);
*mask = value;
#endif
}
*mask = value;
#endif
}