mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-19 23:28:16 +00:00
ddraw: Get the texture format from the texture in d3d_device3_GetRenderState().
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
5c1976c43b
commit
8c93a90f78
|
@ -2500,17 +2500,13 @@ static HRESULT WINAPI d3d_device3_GetRenderState(IDirect3DDevice3 *iface,
|
|||
|
||||
if ((tex = wined3d_device_get_texture(device->wined3d_device, 0)))
|
||||
{
|
||||
struct wined3d_resource *sub_resource;
|
||||
struct wined3d_resource_desc desc;
|
||||
|
||||
if ((sub_resource = wined3d_texture_get_sub_resource(tex, 0)))
|
||||
{
|
||||
struct wined3d_resource_desc desc;
|
||||
|
||||
wined3d_resource_get_desc(sub_resource, &desc);
|
||||
ddfmt.dwSize = sizeof(ddfmt);
|
||||
ddrawformat_from_wined3dformat(&ddfmt, desc.format);
|
||||
if (ddfmt.u5.dwRGBAlphaBitMask) tex_alpha = TRUE;
|
||||
}
|
||||
wined3d_resource_get_desc(wined3d_texture_get_resource(tex), &desc);
|
||||
ddfmt.dwSize = sizeof(ddfmt);
|
||||
ddrawformat_from_wined3dformat(&ddfmt, desc.format);
|
||||
if (ddfmt.u5.dwRGBAlphaBitMask)
|
||||
tex_alpha = TRUE;
|
||||
}
|
||||
|
||||
if (!(colorop == WINED3D_TOP_MODULATE
|
||||
|
|
Loading…
Reference in a new issue