d3dx9: Don't pass usage flags when creating temporary texture
commit546c55a09d77d197e3ca74426a2f329fad8bc8ce
authorPaul Gofman <gofmanp@gmail.com>
Thu, 25 Feb 2016 10:37:12 +0000 (25 13:37 +0300)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 25 Feb 2016 14:24:14 +0000 (25 23:24 +0900)
tree2966d454a6454e9ccf21c105cdc9eaf5345dac6b
parentc0219a73848245d5f3b85c79330b2bb1792df230
d3dx9: Don't pass usage flags when creating temporary texture

Some usage flags require D3DPOOL_DEFAULT (and not D3DPOOL_SYSTEMMEM),
and the usage of texture being created is overall not related to
intermediate buffer texture usage. If texture being created has
D3DUSAGE_AUTOGENMIPMAP, updating it from non autogenerated mipmap should
be fine according to MSDN (IDirect3DDevice9::UpdateTexture).

Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/d3dx9_36/texture.c