Fix vector access in EGL partial update tests
authorGraeme Leese <gleese@broadcom.com>
Wed, 15 Sep 2021 09:23:00 +0000 (10:23 +0100)
committerMatthew Netsch <quic_mnetsch@quicinc.com>
Fri, 1 Oct 2021 20:51:06 +0000 (20:51 +0000)
commit01edb53c5d20063da67f7e74a832076f4c3327d3
tree33582631922d55d9501c48127597f91451cfc9c1
parentc64c92768c44a87e60c5f53c06c18bd464919e06
Fix vector access in EGL partial update tests

The vector of damage regions was being accessed even when the vector
was empty, which is invalid.

This changes the behaviour of the test, which used to invalidate the
whole framebuffer when it found no damage regions, but not invalidates
none of it. This seems like the correct behaviour.

Components: EGL
Affects: dEQP-EGL.functional.partial_update.*

Change-Id: I8c5500a85d000d16b240359de7eadc67144fb7d3
modules/egl/teglPartialUpdateTests.cpp