mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-01 05:20:09 +01:00
st/nine: Remove useless check in surface9 ctor
Textures already have the check in BaseTexture9. Non-Textures cannot be in the MANAGED Pool. Signed-off-by: Axel Davy <axel.davy@ens.fr>
This commit is contained in:
parent
503d729029
commit
fad0f147fb
1 changed files with 0 additions and 4 deletions
|
|
@ -68,10 +68,6 @@ NineSurface9_ctor( struct NineSurface9 *This,
|
|||
/* Make sure there's a Desc */
|
||||
assert(pDesc);
|
||||
|
||||
/* D3DUSAGE_DYNAMIC isn't allowed on managed buffers */
|
||||
user_assert(!(pDesc->Usage & D3DUSAGE_DYNAMIC) ||
|
||||
(pDesc->Pool != D3DPOOL_MANAGED), D3DERR_INVALIDCALL);
|
||||
|
||||
assert(allocate || pResource || user_buffer ||
|
||||
pDesc->Format == D3DFMT_NULL);
|
||||
assert(!allocate || (!pResource && !user_buffer));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue