summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/x11
diff options
context:
space:
mode:
authorAdam Jackson <ajax@freedesktop.org>2005-07-16 04:02:05 +0000
committerAdam Jackson <ajax@freedesktop.org>2005-07-16 04:02:05 +0000
commite0e993c5ff090058037875642dcd34727a3d8760 (patch)
tree99472265f92410c3da342251edb8b53cfd192c5a /src/mesa/drivers/x11
parentc529f6bf701dcb50741a444f496ede1fa6a44fe0 (diff)
downloadexternal_mesa3d-e0e993c5ff090058037875642dcd34727a3d8760.zip
external_mesa3d-e0e993c5ff090058037875642dcd34727a3d8760.tar.gz
external_mesa3d-e0e993c5ff090058037875642dcd34727a3d8760.tar.bz2
XMesaResizeBuffers needs separate paths for client and server builds
Diffstat (limited to 'src/mesa/drivers/x11')
-rw-r--r--src/mesa/drivers/x11/xm_api.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/drivers/x11/xm_api.c b/src/mesa/drivers/x11/xm_api.c
index bd8b9e6..725c279 100644
--- a/src/mesa/drivers/x11/xm_api.c
+++ b/src/mesa/drivers/x11/xm_api.c
@@ -81,7 +81,9 @@
#include "tnl/tnl.h"
#include "tnl/t_context.h"
#include "tnl/t_pipeline.h"
+#if 0
#include "drivers/common/driverfuncs.h"
+#endif
#ifdef XFree86Server
#include <GL/glxtokens.h>
@@ -2633,6 +2635,10 @@ unsigned long XMesaDitherColor( XMesaContext xmesa, GLint x, GLint y,
*/
void XMesaResizeBuffers( XMesaBuffer b )
{
+#ifdef XFree86Server
+ GET_CURRENT_CONTEXT(ctx);
+ xmesa_resize_buffers(ctx, &(b->mesa_buffer), 0, 0);
+#else
Window root;
int xpos, ypos;
unsigned int width, height, bw, depth;
@@ -2640,5 +2646,6 @@ void XMesaResizeBuffers( XMesaBuffer b )
XGetGeometry( b->xm_visual->display, b->frontxrb->pixmap,
&root, &xpos, &ypos, &width, &height, &bw, &depth);
xmesa_resize_buffers(ctx, &(b->mesa_buffer), width, height);
+#endif
}