wined3d: Fix an oops/crash in context_destroy_gl_resources().