wined3d: Create textures views for depth views.
commit14da948b74a4844f4a363d847872bcf60b7ebb84
authorJózef Kucia <jkucia@codeweavers.com>
Mon, 6 Nov 2017 09:55:21 +0000 (6 10:55 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 6 Nov 2017 18:37:12 +0000 (6 19:37 +0100)
treef0b7adfb510ab7bcf9a7dec37526961ed511ee9f
parentfcd549345d96109179b125d31baf9e9073ecf643
wined3d: Create textures views for depth views.

In Direct3D a different format is used for sampling depth textures, but
this is not the case in OpenGL. We still need to create a texture view
when a texture type is different than a view type, or when a shader
resource view is being created for a subset of sub-resources.

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/wined3d/utils.c
dlls/wined3d/view.c
dlls/wined3d/wined3d_private.h