wined3d: Pass an IWineD3DDeviceImpl pointer to drawPrimitive().