Somehow "ctx->Driver.GetBufferSize" get called before it is set up
when I run "glxinfo" with the MGA-GLX driver... I don't know if
this should considered a bug in the MGA-GLX driver or in Mesa.
Nevertheless here is a fix for it:
Index: context.c
===================================================================
RCS file: /cvs/mesa3d/Mesa/src/context.c,v
retrieving revision 1.18.2.2
diff -u -r1.18.2.2 context.c
--- context.c 1999/11/15 22:21:18 1.18.2.2
+++ context.c 1999/11/18 17:26:20
@@ -1827,7 +1827,12 @@
fprintf(stderr, "glResizeBuffersMESA\n");
/* ask device driver for size of output buffer */
- (*ctx->Driver.GetBufferSize)( ctx, &buf_width, &buf_height );
+ if (ctx->Driver.GetBufferSize)
+ (*ctx->Driver.GetBufferSize)( ctx, &buf_width, &buf_height );
+ else {
+ buf_width = 0;
+ buf_height = 0;
+ }
/* see if size of device driver's color buffer (window) has changed */
if (ctx->Buffer->Width == (GLint) buf_width &&
_______________________________________________
Mesa-dev maillist - [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-dev