wined3d: Allow null streams in the vertex declaration.

This commit is contained in:
Ivan Gyurdiev 2006-09-17 16:26:18 -04:00 committed by Alexandre Julliard
parent 6ae83720dd
commit b421b60874
1 changed files with 6 additions and 1 deletions

View File

@ -441,7 +441,12 @@ void primitiveDeclarationConvertToStridedData(
unsigned int idx;
element = vertexDeclaration->pDeclarationWine + i;
TRACE("%p Elements %p %d or %d\n", vertexDeclaration->pDeclarationWine, element, i, vertexDeclaration->declarationWNumElements);
TRACE("%p Element %p (%d of %d)\n", vertexDeclaration->pDeclarationWine,
element, i + 1, vertexDeclaration->declarationWNumElements - 1);
if (This->stateBlock->streamSource[element->Stream] == NULL)
continue;
if (This->stateBlock->streamIsUP) {
TRACE("Stream is up %d, %p\n", element->Stream, This->stateBlock->streamSource[element->Stream]);
streamVBO = 0;