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
2f3c7e87
Commit
2f3c7e87
authored
Dec 22, 2022
by
Zebediah Figura
Committed by
Alexandre Julliard
Mar 02, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Remove the redundant "desc" parameter to ddraw_surface_create_wined3d_texture().
parent
c86263aa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
surface.c
dlls/ddraw/surface.c
+4
-3
No files found.
dlls/ddraw/surface.c
View file @
2f3c7e87
...
...
@@ -5995,10 +5995,11 @@ static HRESULT ddraw_surface_reserve_memory(struct wined3d_texture *wined3d_text
return
hr
;
}
static
HRESULT
ddraw_surface_create_wined3d_texture
(
DDSURFACEDESC2
*
desc
,
struct
wined3d_device
*
wined3d_device
,
static
HRESULT
ddraw_surface_create_wined3d_texture
(
struct
wined3d_device
*
wined3d_device
,
const
struct
wined3d_resource_desc
*
wined3d_desc
,
unsigned
int
layers
,
unsigned
int
levels
,
struct
ddraw_texture
*
texture
,
struct
wined3d_texture
**
wined3d_texture
)
{
const
DDSURFACEDESC2
*
desc
=
&
texture
->
surface_desc
;
struct
wined3d_resource_desc
draw_texture_desc
;
struct
wined3d_texture
*
draw_texture
;
struct
ddraw_surface
*
parent
;
...
...
@@ -6589,7 +6590,7 @@ HRESULT ddraw_surface_create(struct ddraw *ddraw, const DDSURFACEDESC2 *surface_
layers
=
6
;
}
if
(
FAILED
(
hr
=
ddraw_surface_create_wined3d_texture
(
d
esc
,
d
draw
->
wined3d_device
,
&
wined3d_desc
,
layers
,
levels
,
if
(
FAILED
(
hr
=
ddraw_surface_create_wined3d_texture
(
ddraw
->
wined3d_device
,
&
wined3d_desc
,
layers
,
levels
,
texture
,
&
wined3d_texture
)))
{
WARN
(
"Failed to create wined3d texture, hr %#lx.
\n
"
,
hr
);
...
...
@@ -6723,7 +6724,7 @@ HRESULT ddraw_surface_create(struct ddraw *ddraw, const DDSURFACEDESC2 *surface_
desc
->
ddsCaps
.
dwCaps
|=
DDSCAPS_BACKBUFFER
;
desc
->
u5
.
dwBackBufferCount
=
0
;
if
(
FAILED
(
hr
=
ddraw_surface_create_wined3d_texture
(
d
esc
,
d
draw
->
wined3d_device
,
&
wined3d_desc
,
1
,
1
,
if
(
FAILED
(
hr
=
ddraw_surface_create_wined3d_texture
(
ddraw
->
wined3d_device
,
&
wined3d_desc
,
1
,
1
,
texture
,
&
wined3d_texture
)))
{
heap_free
(
texture
);
...
...
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