Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
dbdde3bd
Commit
dbdde3bd
authored
Sep 16, 2013
by
Henri Verbeet
Committed by
Alexandre Julliard
Sep 16, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Take surface usage into account when checking format capabilities in CreateSurface().
parent
d1e44ff7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
ddraw.c
dlls/ddraw/ddraw.c
+7
-1
No files found.
dlls/ddraw/ddraw.c
View file @
dbdde3bd
...
...
@@ -3005,6 +3005,7 @@ static HRESULT CreateSurface(struct ddraw *ddraw, DDSURFACEDESC2 *DDSD,
{
enum
wined3d_format_id
format
=
wined3dformat_from_ddrawformat
(
&
desc2
.
u4
.
ddpfPixelFormat
);
enum
wined3d_resource_type
rtype
;
DWORD
usage
=
0
;
if
(
desc2
.
ddsCaps
.
dwCaps
&
DDSCAPS_TEXTURE
)
rtype
=
WINED3D_RTYPE_TEXTURE
;
...
...
@@ -3013,8 +3014,13 @@ static HRESULT CreateSurface(struct ddraw *ddraw, DDSURFACEDESC2 *DDSD,
else
rtype
=
WINED3D_RTYPE_SURFACE
;
if
(
desc2
.
ddsCaps
.
dwCaps
&
DDSCAPS_ZBUFFER
)
usage
=
WINED3DUSAGE_DEPTHSTENCIL
;
else
if
(
desc2
.
ddsCaps
.
dwCaps
&
DDSCAPS_3DDEVICE
)
usage
=
WINED3DUSAGE_RENDERTARGET
;
hr
=
wined3d_check_device_format
(
ddraw
->
wined3d
,
WINED3DADAPTER_DEFAULT
,
WINED3D_DEVICE_TYPE_HAL
,
mode
.
format_id
,
0
,
rtype
,
format
);
mode
.
format_id
,
usage
,
rtype
,
format
);
if
(
SUCCEEDED
(
hr
))
desc2
.
ddsCaps
.
dwCaps
|=
DDSCAPS_VIDEOMEMORY
;
else
...
...
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