wined3d: Print the fixed and unfixed vertex warning only when needed.

This commit is contained in:
Stefan Dösinger 2007-07-09 16:52:09 +02:00 committed by Alexandre Julliard
parent 9ba3f389f6
commit 97cd8bab1b
1 changed files with 4 additions and 2 deletions

View File

@ -199,9 +199,11 @@ void primitiveDeclarationConvertToStridedData(
data = IWineD3DVertexBufferImpl_GetMemory(This->stateBlock->streamSource[element->Stream], 0, &streamVBO);
if(fixup) {
if( streamVBO != 0) *fixup = TRUE;
else if(*fixup && !useVertexShaderFunction) {
else if(*fixup && !useVertexShaderFunction &&
(element->Usage == WINED3DDECLUSAGE_COLOR ||
element->Usage == WINED3DDECLUSAGE_POSITIONT)) {
/* This may be bad with the fixed function pipeline */
FIXME("Missing fixed and unfixed vertices, expect graphics glitches\n");
FIXME("Missing vbo streams with unfixed colors or transformed position, expect problems\n");
}
}
}