On 20 October 2015 at 18:05, Riccardo Bortolato rikyz619@gmail.com wrote:
But d3d9_surface->sub_resource_idx is layer * container->level_count + level so view->sub_resource_idx would still be ok,
That's what I said. :)
But at some point we'll need to create actual OpenGL texture views, and then we'll need to correct level and layer indices instead of just the sub-resource index. (See also https://www.opengl.org/registry/specs/ARB/texture_view.txt for reference.)