wined3d: Don't do GL calls without a context.