xlib: more SP_NO_RAST support

For some resaon normal (non-display-buffer) buffers are being allocated
through Xshm...  Bypass at least for SP_NO_RAST
This commit is contained in:
Keith Whitwell 2008-05-08 22:10:15 +01:00
parent 9002cdb48e
commit fec1d215f6
2 changed files with 12 additions and 0 deletions

View file

@ -1689,6 +1689,15 @@ static void
Fake_glXSwapBuffers( Display *dpy, GLXDrawable drawable )
{
XMesaBuffer buffer = XMesaFindBuffer( dpy, drawable );
static boolean firsttime = 1, no_rast = 0;
if (firsttime) {
no_rast = getenv("SP_NO_RAST") != NULL;
firsttime = 0;
}
if (no_rast)
return;
if (buffer) {
XMesaSwapBuffers(buffer);

View file

@ -110,6 +110,9 @@ int xmesa_check_for_xshm( XMesaDisplay *display )
int major, minor, ignore;
Bool pixmaps;
if (getenv("SP_NO_RAST"))
return 0;
if (getenv("MESA_NOSHM")) {
return 0;
}