wined3d: Print an error when drawStridedSlowVs() is called with 0 idxSize and non-NULL idxData (LLVM/Clang).

This commit is contained in:
Henri Verbeet 2008-10-30 17:38:56 +01:00 committed by Alexandre Julliard
parent c090471a49
commit 6e1b7333e6
1 changed files with 3 additions and 0 deletions

View File

@ -619,6 +619,9 @@ static void drawStridedSlowVs(IWineD3DDevice *iface, WineDirect3DVertexStridedDa
if (idxSize == 2) pIdxBufS = (const WORD *) idxData;
else pIdxBufL = (const DWORD *) idxData;
} else if (idxData) {
ERR("non-NULL idxData with 0 idxSize, this should never happen\n");
return;
}
/* Start drawing in GL */