Stefan Dösinger : wined3d: Set the gl resource type in resource_init.