mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
st/nine: Avoid crash on empty Draw*Up
Ignore empty draw calls. Avoid assertion fault when such draw calls happen in u_upload_mgr. Signed-off-by: Axel Davy <axel.davy@ens.fr>
This commit is contained in:
parent
ada0c2ceaa
commit
e7a0f580a6
1 changed files with 2 additions and 0 deletions
|
|
@ -3023,6 +3023,7 @@ NineDevice9_DrawPrimitiveUP( struct NineDevice9 *This,
|
|||
|
||||
user_assert(pVertexStreamZeroData && VertexStreamZeroStride,
|
||||
D3DERR_INVALIDCALL);
|
||||
user_assert(PrimitiveCount, D3D_OK);
|
||||
|
||||
nine_update_state(This);
|
||||
|
||||
|
|
@ -3089,6 +3090,7 @@ NineDevice9_DrawIndexedPrimitiveUP( struct NineDevice9 *This,
|
|||
user_assert(VertexStreamZeroStride, D3DERR_INVALIDCALL);
|
||||
user_assert(IndexDataFormat == D3DFMT_INDEX16 ||
|
||||
IndexDataFormat == D3DFMT_INDEX32, D3DERR_INVALIDCALL);
|
||||
user_assert(PrimitiveCount, D3D_OK);
|
||||
|
||||
nine_update_state(This);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue