Alexander Dorofeyev : wined3d: Handle zero primitive count.
Module: wine Branch: master Commit: 3d2bdf52cd164ce029f1dd5541f659a227f297bf URL: http://source.winehq.org/git/wine.git/?a=commit;h=3d2bdf52cd164ce029f1dd5541... Author: Alexander Dorofeyev <alexd4(a)inbox.lv> Date: Sun Mar 23 14:53:45 2008 +0200 wined3d: Handle zero primitive count. --- dlls/wined3d/drawprim.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/dlls/wined3d/drawprim.c b/dlls/wined3d/drawprim.c index 2ece349..e70b905 100644 --- a/dlls/wined3d/drawprim.c +++ b/dlls/wined3d/drawprim.c @@ -984,6 +984,8 @@ void drawPrimitive(IWineD3DDevice *iface, IWineD3DSurfaceImpl *target; int i; + if (NumPrimitives == 0) return; + /* Signals other modules that a drawing is in progress and the stateblock finalized */ This->isInDraw = TRUE;
participants (1)
-
Alexandre Julliard