Henri Verbeet : wined3d: Print an error when drawStridedSlowVs() is called with 0 idxSize and non-NULL idxData (LLVM/Clang).
Alexandre Julliard
julliard at winehq.org
Fri Oct 31 09:23:55 CDT 2008
Module: wine
Branch: master
Commit: 6e1b7333e66fc688cc5e66dbb5cd2a7cb3fcc2dc
URL: http://source.winehq.org/git/wine.git/?a=commit;h=6e1b7333e66fc688cc5e66dbb5cd2a7cb3fcc2dc
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Thu Oct 30 17:38:56 2008 +0100
wined3d: Print an error when drawStridedSlowVs() is called with 0 idxSize and non-NULL idxData (LLVM/Clang).
---
dlls/wined3d/drawprim.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/wined3d/drawprim.c b/dlls/wined3d/drawprim.c
index b3612bd..545bad1 100644
--- a/dlls/wined3d/drawprim.c
+++ b/dlls/wined3d/drawprim.c
@@ -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 */
More information about the wine-cvs
mailing list