mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 19:58:09 +02:00
st/nine: Move assert in NineSurface9_ctor
Move assert to function entry. Signed-off-by: Patrick Rudolph <siro@das-labor.org> Reviewed-by: Axel Davy <axel.davy@ens.fr>
This commit is contained in:
parent
851e4b8d8a
commit
6a1cce20b6
1 changed files with 2 additions and 2 deletions
|
|
@ -76,6 +76,8 @@ NineSurface9_ctor( struct NineSurface9 *This,
|
|||
/* The only way we can have !pContainer is being created
|
||||
* from create_zs_or_rt_surface with params 0 0 0 */
|
||||
assert(pContainer || (Level == 0 && Layer == 0 && TextureType == 0));
|
||||
/* Make sure no resource is passed for pool systemmem */
|
||||
assert(pDesc->Pool != D3DPOOL_SYSTEMMEM || !pResource);
|
||||
|
||||
This->data = (uint8_t *)user_buffer;
|
||||
|
||||
|
|
@ -135,8 +137,6 @@ NineSurface9_ctor( struct NineSurface9 *This,
|
|||
return E_OUTOFMEMORY;
|
||||
}
|
||||
|
||||
assert(pDesc->Pool != D3DPOOL_SYSTEMMEM || !pResource);
|
||||
|
||||
if (pResource && (pDesc->Usage & D3DUSAGE_DYNAMIC))
|
||||
pResource->flags |= NINE_RESOURCE_FLAG_LOCKABLE;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue