mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 08:40:11 +01:00
glx/dri2: set the __DRI2_FLUSH_DRAWABLE flag where it should be set
Sorry, I accidentally omitted this. It only broke MLAA. Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
520892688a
commit
5fb2b1f4d4
1 changed files with 4 additions and 2 deletions
|
|
@ -557,7 +557,8 @@ __dri2CopySubBuffer(__GLXDRIdrawable *pdraw, int x, int y,
|
|||
xrect.height = height;
|
||||
|
||||
if (psc->f && psc->f->base.version >= 4) {
|
||||
unsigned flags = flush ? __DRI2_FLUSH_CONTEXT : 0;
|
||||
unsigned flags = (flush ? __DRI2_FLUSH_CONTEXT : 0) |
|
||||
__DRI2_FLUSH_DRAWABLE;
|
||||
__DRIcontext *ctx = dri2GetCurrentContext();
|
||||
|
||||
if (ctx) {
|
||||
|
|
@ -815,7 +816,8 @@ dri2SwapBuffers(__GLXDRIdrawable *pdraw, int64_t target_msc, int64_t divisor,
|
|||
__DRI2_THROTTLE_SWAPBUFFER, flush);
|
||||
} else {
|
||||
if (psc->f && psc->f->base.version >= 4) {
|
||||
unsigned flags = flush ? __DRI2_FLUSH_CONTEXT : 0;
|
||||
unsigned flags = (flush ? __DRI2_FLUSH_CONTEXT : 0) |
|
||||
__DRI2_FLUSH_DRAWABLE;
|
||||
__DRIcontext *ctx = dri2GetCurrentContext();
|
||||
|
||||
if (ctx) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue