1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-27 02:20:05 +00:00
JUCE/modules/juce_opengl
reuk a31a4dc5f7
X11: Ensure repainting still works after destorying a GL context
On Linux, repaints are only issued if the number of received SHM
completion events matches the number of events initiated with
`xShmPutImage`.

Previously, destroying a GL context was calling `XSync (display, True)`
which cleared the event queue. Sometimes, this would cause an 'SHM
Completion Event' to be removed from the queue. This meant that the
number of received events would never match the number of initiated
events, and repainting would stop indefinitely.

By calling `XSync (display, False)` instead, we ensure that pending
events are kept in the queue, so any pending SHM completion event will
be found as usual during the next repaint timer callback.
2021-02-18 11:46:48 +00:00
..
geometry Updated all license headers 2020-06-29 08:30:22 +01:00
native X11: Ensure repainting still works after destorying a GL context 2021-02-18 11:46:48 +00:00
opengl Replaced deprecated Displays methods 2020-10-27 12:38:59 +00:00
utils Updated all license headers 2020-06-29 08:30:22 +01:00
juce_opengl.cpp Narrowed the scoped of some undeclared Objective-C selector warnings 2020-12-10 12:48:42 +00:00
juce_opengl.h Bump version number to 6.0.7 2021-01-14 17:26:20 +00:00
juce_opengl.mm Updated all license headers 2020-06-29 08:30:22 +01:00