Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
3d2fb4c9
Commit
3d2fb4c9
authored
Feb 29, 2016
by
Henri Verbeet
Committed by
Alexandre Julliard
Mar 01, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Get the texture format from the texture in d3d_device3_SetTexture().
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3c54eefa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
device.c
dlls/ddraw/device.c
+6
-10
No files found.
dlls/ddraw/device.c
View file @
3d2fb4c9
...
...
@@ -4723,17 +4723,13 @@ static HRESULT WINAPI d3d_device3_SetTexture(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
;
}
/* Args 1 and 2 are already set to WINED3DTA_TEXTURE/WINED3DTA_CURRENT in case of D3DTBLEND_MODULATE */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment