summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>1999-09-03 11:53:33 +0000
committerKeith Whitwell <[email protected]>1999-09-03 11:53:33 +0000
commit8d8e248ab215df7e127dea1f66916e32e5cc1526 (patch)
tree3c0b9e2c96862cb4280c54539e9920db4fd423de /src/mesa/drivers
parentb6e6937287eb92945e5e66db1c110861bf389085 (diff)
fix for GL_COMPILE_AND_EXECUTE bug
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/x11/fakeglx.c44
1 files changed, 1 insertions, 43 deletions
diff --git a/src/mesa/drivers/x11/fakeglx.c b/src/mesa/drivers/x11/fakeglx.c
index 12567fe19c5..2704e35ad59 100644
--- a/src/mesa/drivers/x11/fakeglx.c
+++ b/src/mesa/drivers/x11/fakeglx.c
@@ -1,4 +1,4 @@
-/* $Id: fakeglx.c,v 1.1 1999/08/19 00:55:42 jtg Exp $ */
+/* $Id: fakeglx.c,v 1.2 1999/09/03 11:53:33 keithw Exp $ */
/*
* Mesa 3-D graphics library
@@ -1172,49 +1172,7 @@ Bool Fake_glXIsDirect( Display *dpy, GLXContext ctx )
void Fake_glXSwapBuffers( Display *dpy, GLXDrawable drawable )
{
XMesaBuffer buffer = XMesaFindBuffer( dpy, drawable );
- static GLXDrawable last = 0;
- static Window window = 0;
- if (drawable != last && 0) {
- XSetWindowAttributes cwa;
- _kw_ungrab_all( dpy );
- cwa.override_redirect = 0;
- XChangeWindowAttributes( dpy, drawable, CWOverrideRedirect,
- &cwa );
-/* printf("KW: Ungrab display %s\n", DisplayString(dpy)); */
-
-
-/* last = drawable; */
-
-
- if (!window) {
- XSetWindowAttributes cwa;
-
- if ((window = XCreateSimpleWindow( dpy,
- RootWindow( dpy, 0 ),
- 10,10,100,100, 0,
- WhitePixel( dpy, 0 ),
- BlackPixel( dpy, 0 ))) == 0)
- {
- printf("Failed to open radar window\n");
- abort();
- }
-
- cwa.event_mask = (PointerMotionMask |
- ButtonPressMask |
- ButtonReleaseMask |
- KeyPressMask |
- KeyReleaseMask |
- ExposureMask );
-
- XChangeWindowAttributes( dpy, window,
- CWEventMask,
- &cwa );
-
- XMapWindow( dpy, window );
- XFlush( dpy );
- }
- }
if (buffer) {
XMesaSwapBuffers(buffer);
}