d3d9: In surface_init check for GetDC supported at texture level (avoid using a subresource).
Signed-off-by: Riccardo Bortolato <rikyz619@gmail.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
46b717c509
commit
1745c5f960
|
@ -379,7 +379,7 @@ void surface_init(struct d3d9_surface *surface, struct wined3d_texture *wined3d_
|
||||||
IDirect3DBaseTexture9_Release(texture);
|
IDirect3DBaseTexture9_Release(texture);
|
||||||
}
|
}
|
||||||
|
|
||||||
wined3d_resource_get_desc(wined3d_surface_get_resource(wined3d_surface), &desc);
|
wined3d_resource_get_desc(wined3d_texture_get_resource(wined3d_texture), &desc);
|
||||||
switch (d3dformat_from_wined3dformat(desc.format))
|
switch (d3dformat_from_wined3dformat(desc.format))
|
||||||
{
|
{
|
||||||
case D3DFMT_A8R8G8B8:
|
case D3DFMT_A8R8G8B8:
|
||||||
|
|
Loading…
Reference in New Issue