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
379f592c
Commit
379f592c
authored
Oct 05, 2023
by
Zebediah Figura
Committed by
Alexandre Julliard
Oct 10, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Do not check for DDRAW_NO3D in wined3d_resource_desc_from_ddraw().
NO3D implies SYSTEMMEMORY, and is incompatible with TEXTUREMANAGE, so this case is unreachable.
parent
e04e10b3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
surface.c
dlls/ddraw/surface.c
+6
-9
No files found.
dlls/ddraw/surface.c
View file @
379f592c
...
...
@@ -6189,15 +6189,12 @@ static void wined3d_resource_desc_from_ddraw(struct ddraw *ddraw,
}
else
{
if
(
!
(
ddraw
->
flags
&
DDRAW_NO3D
))
{
if
(
caps
&
DDSCAPS_TEXTURE
)
wined3d_desc
->
bind_flags
|=
WINED3D_BIND_SHADER_RESOURCE
;
if
(
caps
&
DDSCAPS_ZBUFFER
)
wined3d_desc
->
bind_flags
|=
WINED3D_BIND_DEPTH_STENCIL
;
else
if
(
caps
&
DDSCAPS_3DDEVICE
)
wined3d_desc
->
bind_flags
|=
WINED3D_BIND_RENDER_TARGET
;
}
if
(
caps
&
DDSCAPS_TEXTURE
)
wined3d_desc
->
bind_flags
|=
WINED3D_BIND_SHADER_RESOURCE
;
if
(
caps
&
DDSCAPS_ZBUFFER
)
wined3d_desc
->
bind_flags
|=
WINED3D_BIND_DEPTH_STENCIL
;
else
if
(
caps
&
DDSCAPS_3DDEVICE
)
wined3d_desc
->
bind_flags
|=
WINED3D_BIND_RENDER_TARGET
;
if
(
caps2
&
(
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