• Robert Bragg's avatar
    egl-nok-swap-region: probe front not back buffer · 8f9beee8
    Robert Bragg authored
    The egl-nok-swap-buffer was mistakenly reading the back buffer to test
    the correctness of eglSwapRegionNOK but once the second glClear() to red
    has been issued the whole back buffer is red and so the test would
    always passed since it only probed points it expected to be red anyway.
    
    This patch now uses egl_probe_front_pixel_rgb to read the front buffer
    instead and in addition to checking that certain pixels should be red,
    it also checks that other pixels are still green.
    Reviewed-by: Brian Paul's avatarBrian Paul <brianp@vmware.com>
    8f9beee8
egl-nok-swap-region.c 3.07 KB