Stefan Dösinger : wined3d: Add a function for wined3d_gl_resource_type to texture target conversion.