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
8ac639d2
Commit
8ac639d2
authored
Sep 26, 2018
by
Henri Verbeet
Committed by
Alexandre Julliard
Sep 26, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Do not request 3D-usages for DDRAW_NO3D surfaces.
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a4700455
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
surface.c
dlls/ddraw/surface.c
+9
-6
No files found.
dlls/ddraw/surface.c
View file @
8ac639d2
...
...
@@ -6152,12 +6152,15 @@ HRESULT ddraw_surface_create(struct ddraw *ddraw, const DDSURFACEDESC2 *surface_
}
else
{
if
(
desc
->
ddsCaps
.
dwCaps
&
DDSCAPS_TEXTURE
)
wined3d_desc
.
usage
|=
WINED3DUSAGE_TEXTURE
;
if
(
desc
->
ddsCaps
.
dwCaps
&
DDSCAPS_ZBUFFER
)
wined3d_desc
.
usage
|=
WINED3DUSAGE_DEPTHSTENCIL
;
else
if
(
desc
->
ddsCaps
.
dwCaps
&
DDSCAPS_3DDEVICE
)
wined3d_desc
.
usage
|=
WINED3DUSAGE_RENDERTARGET
;
if
(
!
(
ddraw
->
flags
&
DDRAW_NO3D
))
{
if
(
desc
->
ddsCaps
.
dwCaps
&
DDSCAPS_TEXTURE
)
wined3d_desc
.
usage
|=
WINED3DUSAGE_TEXTURE
;
if
(
desc
->
ddsCaps
.
dwCaps
&
DDSCAPS_ZBUFFER
)
wined3d_desc
.
usage
|=
WINED3DUSAGE_DEPTHSTENCIL
;
else
if
(
desc
->
ddsCaps
.
dwCaps
&
DDSCAPS_3DDEVICE
)
wined3d_desc
.
usage
|=
WINED3DUSAGE_RENDERTARGET
;
}
if
(
desc
->
ddsCaps
.
dwCaps2
&
(
DDSCAPS2_TEXTUREMANAGE
|
DDSCAPS2_D3DTEXTUREMANAGE
))
{
...
...
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