mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-31 05:30:11 +01:00
added Flush in glXCopyContext()
This commit is contained in:
parent
9b8059e536
commit
68edf28df6
1 changed files with 4 additions and 1 deletions
|
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue