• Thomas Hellstrom's avatar
    glx: Fix glx-swap-exchange v3 · 689897cd
    Thomas Hellstrom authored
    Fix the following problems with this test:
    
    1) The spec is not referring to glXChooseVisual attributes, only to
    glXChooseFBConfig attributes. So use glXChooseFBConfig.
    
    2) Make sure we have an alpha channel.
    
    3) Call piglit_dispatch_default_init before issuing GL commands.
    
    v2:
    - Test also alpha.
    - Test also frontbuffer.
    v3:
    - Addressed review comments by Brian Paul.
    Signed-off-by: default avatarThomas Hellstrom <thellstrom@vmware.com>
    Reviewed-by: Brian Paul's avatarBrian Paul <brianp@vmware.com>
    689897cd
glx-swap-exchange.c 3.93 KB