st/mesa: remove redundant stfb->iface checks
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 21 Apr 2017 13:11:34 +0000 (15:11 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 28 Apr 2017 09:34:00 +0000 (11:34 +0200)
commit9d346af322e3f9d6d52e00759e8c3cd37c192004
tree6b705702afb316967718c9d39e0cad3ff6126a06
parent19b61799e3d06795d783b34fdbbf8474ef1e9a7c
st/mesa: remove redundant stfb->iface checks

stfb->iface is always non-NULL for an st_framebuffer. These checks
were incorrect, relying on out-of-bounds memory access in the
surface-less case of EGL_KHR_surfaceless_context.

v2: remove redundant stread check (Marek)

Reviewed-by: Marek Olšák <marek@olsak@amd.com> (v2)
src/mesa/state_tracker/st_cb_viewport.c
src/mesa/state_tracker/st_manager.c