summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/x11
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2006-03-01 15:32:38 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2006-03-01 15:32:38 +0000
commit68edf28df68701ac429e53c0fd6dbb70b39c3fd0 (patch)
treeeda009aef4d5296a035923304ed6515869c6ee5b /src/mesa/drivers/x11
parent9b8059e53610d6d9d217f331b0671354e62ad47f (diff)
added Flush in glXCopyContext()
Diffstat (limited to 'src/mesa/drivers/x11')
-rw-r--r--src/mesa/drivers/x11/fakeglx.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/drivers/x11/fakeglx.c b/src/mesa/drivers/x11/fakeglx.c
index 24fc6fe6ab..259a295042 100644
--- a/src/mesa/drivers/x11/fakeglx.c
+++ b/src/mesa/drivers/x11/fakeglx.c
@@ -2,7 +2,7 @@
* Mesa 3-D graphics library
* Version: 6.5
*
- * Copyright (C) 1999-2005 Brian Paul All Rights Reserved.
+ * Copyright (C) 1999-2006 Brian Paul All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
@@ -1497,6 +1497,9 @@ Fake_glXCopyContext( Display *dpy, GLXContext src, GLXContext dst,
XMesaContext xm_src = fakeSrc->xmesaContext;
XMesaContext xm_dst = fakeDst->xmesaContext;
(void) dpy;
+ if (MakeCurrent_PrevContext == src) {
+ _mesa_Flush();
+ }
_mesa_copy_context( &(xm_src->mesa), &(xm_dst->mesa), (GLuint) mask );
}