On Thu, 16 May 2019 at 22:52, Matteo Bruni matteo.mystral@gmail.com wrote:
On Thu, May 16, 2019 at 8:02 PM Henri Verbeet hverbeet@gmail.com wrote:
It seems less than ideal to depend on d3d_info for feature_level_from_caps(), not in the least because it isn't completely initialised yet at this point. To some extent that's already true of gl_info as well, of course.
Yeah, it's a bit awkward. I was undecided between that or reintroducing a gl_info.texture_size, I guess the latter is preferable after all.
Perhaps, but other options are delaying feature_level_from_caps() until d3d_info is otherwise fully initialised, and/or passing a wined3d_d3d_limits pointer instead.