st/nine: Return device in NineSurface9_GetContainer
authorPatrick Rudolph <siro@das-labor.org>
Fri, 16 Sep 2016 14:42:50 +0000 (16:42 +0200)
committerAxel Davy <axel.davy@ens.fr>
Mon, 10 Oct 2016 21:43:51 +0000 (23:43 +0200)
commitc1c8e852c158759ac8c551ab104ff05d683acf19
tree0b7b77a041c91ac1b683ee0e6739ab52b59cdff2
parentba0274c7d6c3b77a36bbe1b444f427b0c873e2f3
st/nine: Return device in NineSurface9_GetContainer

According to MSDN the device is returned for surfaces that do
not have a regular container.

Such surfaces are:
OffscreenPlainSurface, DepthStencilSurface and RenderTarget

Tested and verified on Windows.

Signed-off-by: Patrick Rudolph <siro@das-labor.org>
Reviewed-by: Axel Davy <axel.davy@ens.fr>
src/gallium/state_trackers/nine/surface9.c