wined3d: Handle zero primitive count.

This commit is contained in:
Alexander Dorofeyev 2008-03-23 14:53:45 +02:00 committed by Alexandre Julliard
parent bacd2340b4
commit 3d2bdf52cd
1 changed files with 2 additions and 0 deletions

View File

@ -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;