diff options
author | Thomas Hellstrom <[email protected]> | 2017-08-11 09:49:54 +0200 |
---|---|---|
committer | Thomas Hellstrom <[email protected]> | 2017-08-17 07:39:42 +0200 |
commit | 0cc4c7e33ed7700fc20b6a642a74599a241e0811 (patch) | |
tree | 734bb3e5619007026d1d4caeef3eab6b36301510 /src/loader/loader_dri3_helper.h | |
parent | 7c3e3c0faf7dfff61762fb7bc3299f5d7528b91e (diff) |
loader_dri3: Make sure we have an updated back v3
With GLX_SWAP_COPY_OML and GLX_SWAP_EXCHANGE_OML it may happen in situations
when glXSwapBuffers() is immediately followed by for example another
glXSwapBuffers() or glXCopyBuffers() or back buffer age querying, that we
haven't yet allocated and initialized a new back buffer because there was
no GL rendering in between.
Make sure that we have a back buffer in those situations.
v2: Eliminate the drawable have_back_format member.
v3: Make sure we re-initialize the back even if it exists.
Signed-off-by: Thomas Hellstrom <[email protected]>
Reviewed-by: Michel Dänzer <[email protected]>
Diffstat (limited to 'src/loader/loader_dri3_helper.h')
-rw-r--r-- | src/loader/loader_dri3_helper.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/loader/loader_dri3_helper.h b/src/loader/loader_dri3_helper.h index 1a7d44dc1da..d3f4b0c00a9 100644 --- a/src/loader/loader_dri3_helper.h +++ b/src/loader/loader_dri3_helper.h @@ -158,6 +158,7 @@ struct loader_dri3_drawable { const struct loader_dri3_vtable *vtable; unsigned int swap_method; + unsigned int back_format; }; void |