• Alexandros Frantzis's avatar
    winewayland.drv: Handle resizing of OpenGL content. · 4bba16fd
    Alexandros Frantzis authored
    Wayland surfaces don't have an inherent native size that the EGL
    implementation can track, so we need to explicitly tell EGL about changes
    in the native size with wl_egl_window_resize.
    
    Since the resize can be triggered outside the GL render thread, and
    wl_egl_window_resize is not thread safe (with respect to other EGL/GL
    calls), we cannot call it directly at will. Instead we mark the
    wayland_gl_drawable as resized, and actually call the
    wl_egl_window_resize function from the thread in which the respective
    drawable is current.
    
    Note that the first EGL/GL operation that requires a new backbuffer
    latches whatever native size we have reported, until the next
    eglSwapBuffers. In order to ensure the current native size is applied as
    soon as possible (to avoid glitches), we check for and apply resizes at
    a few extra points where a new backbuffer may be required (e.g.,
    glClear, eglMakeCurrent).
    4bba16fd
Name
Last commit
Last update
..
Makefile.in Loading commit data...
display.c Loading commit data...
dllmain.c Loading commit data...
opengl.c Loading commit data...
pointer-constraints-unstable-v1.xml Loading commit data...
relative-pointer-unstable-v1.xml Loading commit data...
unixlib.h Loading commit data...
version.rc Loading commit data...
viewporter.xml Loading commit data...
vulkan.c Loading commit data...
wayland.c Loading commit data...
wayland_keyboard.c Loading commit data...
wayland_output.c Loading commit data...
wayland_pointer.c Loading commit data...
wayland_surface.c Loading commit data...
waylanddrv.h Loading commit data...
waylanddrv_dll.h Loading commit data...
waylanddrv_main.c Loading commit data...
window.c Loading commit data...
window_surface.c Loading commit data...
winewayland.drv.spec Loading commit data...
xdg-output-unstable-v1.xml Loading commit data...
xdg-shell.xml Loading commit data...