Module: wine Branch: master Commit: 97cd8bab1bc21e9334ce4c28298c5cfeea90be5e URL: http://source.winehq.org/git/wine.git/?a=commit;h=97cd8bab1bc21e9334ce4c2829...
Author: Stefan Dösinger stefandoesinger@gmx.at Date: Mon Jul 9 16:52:09 2007 +0200
wined3d: Print the fixed and unfixed vertex warning only when needed.
---
dlls/wined3d/drawprim.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/dlls/wined3d/drawprim.c b/dlls/wined3d/drawprim.c index 1b03528..c1484d1 100644 --- a/dlls/wined3d/drawprim.c +++ b/dlls/wined3d/drawprim.c @@ -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"); } } }