• Jon Turney's avatar
    Revert "glx: Simplify glXDestroyContext" · 437b2749
    Jon Turney authored
    This reverts commit 7f5adf73.
    
    This seems to miss the whole point of the idExists flag, as it makes the
    lifetime of that being true the same as the lifetime of the Context resource.
    
    The previously current context tag is always given in a MakeContextCurrent
    request, even if that context tag is no longer valid (for example, the context
    has been deleted), so this leads to BadContextTag errors.
    
    See fd.o bug #30089 for the makecurrenttest.c testcase, and some discussion of
    previous manifestations of this bug.
    Signed-off-by: Jon Turney's avatarJon TURNEY <jon.turney@dronecode.org.uk>
    Reviewed-by: Adam Jackson's avatarAdam Jackson <ajax@redhat.com>
    437b2749
glxcmds.c 74.1 KB