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
22fcf28f
Commit
22fcf28f
authored
Aug 04, 2023
by
Zebediah Figura
Committed by
Alexandre Julliard
Aug 10, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Release push constant buffers in wined3d_device_uninit_3d().
Fixes:
c065b4fe
parent
73391354
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
device.c
dlls/wined3d/device.c
+9
-0
No files found.
dlls/wined3d/device.c
View file @
22fcf28f
...
...
@@ -1407,6 +1407,8 @@ void wined3d_device_uninit_3d(struct wined3d_device *device)
struct
wined3d_resource
*
resource
,
*
cursor
;
struct
wined3d_rendertarget_view
*
view
;
struct
wined3d_texture
*
texture
;
struct
wined3d_buffer
*
buffer
;
unsigned
int
i
;
TRACE
(
"device %p.
\n
"
,
device
);
...
...
@@ -1432,6 +1434,13 @@ void wined3d_device_uninit_3d(struct wined3d_device *device)
wined3d_texture_decref
(
texture
);
}
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
device
->
push_constants
);
++
i
)
{
if
((
buffer
=
device
->
push_constants
[
i
]))
wined3d_buffer_decref
(
buffer
);
}
memset
(
device
->
push_constants
,
0
,
sizeof
(
device
->
push_constants
));
wined3d_device_context_emit_reset_state
(
&
device
->
cs
->
c
,
true
);
state_cleanup
(
state
);
...
...
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