mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 13:00:21 +01:00
st/nine: Check for aligned offset in each vertex element
Fixes wine test test_vertex_declaration_alignment() Reviewed-by: Axel Davy <axel.davy@ens.fr> Signed-off-by: Patrick Rudolph <siro@das-labor.org>
This commit is contained in:
parent
63221c6f09
commit
792af626d4
1 changed files with 3 additions and 1 deletions
|
|
@ -184,8 +184,10 @@ NineVertexDeclaration9_ctor( struct NineVertexDeclaration9 *This,
|
|||
/* wine */
|
||||
for (This->nelems = 0;
|
||||
pElements[This->nelems].Stream != 0xFF;
|
||||
++This->nelems)
|
||||
++This->nelems) {
|
||||
user_assert(pElements[This->nelems].Type != D3DDECLTYPE_UNUSED, E_FAIL);
|
||||
user_assert(!(pElements[This->nelems].Offset & 3), E_FAIL);
|
||||
}
|
||||
|
||||
caps = NineDevice9_GetCaps(This->base.device);
|
||||
user_assert(This->nelems <= caps->MaxStreams, D3DERR_INVALIDCALL);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue