mesa: check framebuffer completeness only after state update
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Mon, 11 Nov 2019 10:32:50 +0000 (12:32 +0200)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Mon, 11 Nov 2019 20:04:55 +0000 (22:04 +0200)
commitf93bb903020bac21a36e240b2c19a4733c2405ee
treec62ecbc47fbfde28837585a1a1a2f6ccb7667576
parentd4a3b09c4bfd955dab92dbb27ab8bc273d18e649
mesa: check framebuffer completeness only after state update

The change made in 88d665830f27 ("mesa: check draw buffer completeness
on glClearBufferfi/glClearBufferiv") correctly updated the state prior
to checking the framebuffer completeness on glClearBufferiv but not in
glClearBufferfi.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Fixes: 88d665830f27 ("mesa: check draw buffer completeness on glClearBufferfi/glClearBufferiv")
Gitlab: https://gitlab.freedesktop.org/mesa/mesa/issues/2072
src/mesa/main/clear.c