[PATCH 06/10] d3d9: use wined3d_rendertarget_view_create instead of wined3d_rendertarget_view_create_from_surface in d3d9_surface_get_rendertarget_view

Henri Verbeet hverbeet at gmail.com
Tue Oct 20 12:26:30 CDT 2015


On 20 October 2015 at 18:05, Riccardo Bortolato <rikyz619 at 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.)



More information about the wine-devel mailing list