OSDN Git Service

st/mesa: fix view template initialization in try_pbo_readpixels
authorRoland Scheidegger <sroland@vmware.com>
Thu, 31 Aug 2017 23:48:42 +0000 (01:48 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Sun, 3 Sep 2017 01:31:28 +0000 (03:31 +0200)
commit2b2c61f0df5c18355b65772d21be36339ba5e1d9
tree92d3316e60ef41bf0ca06dcb0e9c2379b351cc46
parent23b7c7a630aafb2102d3292556eecd84d2739ed5
st/mesa: fix view template initialization in try_pbo_readpixels

I think this is what the code was meant to do, albeit as far as I can tell
the redundant initialization some analyzers complain about should work as
well just fine (only the first layer will be used, if the view contains one
or more layers doesn't really matter).

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102467
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Cc: mesa-stable@lists.freedesktop.org
src/mesa/state_tracker/st_cb_readpixels.c