[PATCH] wined3d: Don't try to reset query pools if we don't have a command buffer.