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
5d9d20ee
Commit
5d9d20ee
authored
Nov 28, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Nov 29, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Also unbind stream outputs and the geometry shader in stateblock_unbind_resources().
parent
8c94757c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
stateblock.c
dlls/wined3d/stateblock.c
+15
-0
No files found.
dlls/wined3d/stateblock.c
View file @
5d9d20ee
...
...
@@ -491,6 +491,15 @@ void stateblock_unbind_resources(struct wined3d_stateblock *stateblock)
}
}
for
(
i
=
0
;
i
<
MAX_STREAM_OUT
;
++
i
)
{
if
((
buffer
=
state
->
stream_output
[
i
].
buffer
))
{
state
->
stream_output
[
i
].
buffer
=
NULL
;
wined3d_buffer_decref
(
buffer
);
}
}
for
(
i
=
0
;
i
<
MAX_STREAMS
;
++
i
)
{
if
((
buffer
=
state
->
streams
[
i
].
buffer
))
...
...
@@ -512,6 +521,12 @@ void stateblock_unbind_resources(struct wined3d_stateblock *stateblock)
wined3d_shader_decref
(
shader
);
}
if
((
shader
=
state
->
geometry_shader
))
{
state
->
geometry_shader
=
NULL
;
wined3d_shader_decref
(
shader
);
}
if
((
shader
=
state
->
pixel_shader
))
{
state
->
pixel_shader
=
NULL
;
...
...
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