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
08b06b7d
Commit
08b06b7d
authored
Dec 01, 2014
by
Henri Verbeet
Committed by
Alexandre Julliard
Dec 01, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Unbind shader resource views in state_unbind_resources().
parent
55eb6c69
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
stateblock.c
dlls/wined3d/stateblock.c
+10
-0
No files found.
dlls/wined3d/stateblock.c
View file @
08b06b7d
...
...
@@ -458,6 +458,7 @@ ULONG CDECL wined3d_stateblock_incref(struct wined3d_stateblock *stateblock)
void
state_unbind_resources
(
struct
wined3d_state
*
state
)
{
struct
wined3d_shader_resource_view
*
srv
;
struct
wined3d_vertex_declaration
*
decl
;
struct
wined3d_sampler
*
sampler
;
struct
wined3d_texture
*
texture
;
...
...
@@ -529,6 +530,15 @@ void state_unbind_resources(struct wined3d_state *state)
wined3d_sampler_decref
(
sampler
);
}
}
for
(
j
=
0
;
j
<
MAX_SHADER_RESOURCE_VIEWS
;
++
j
)
{
if
((
srv
=
state
->
shader_resource_view
[
i
][
j
]))
{
state
->
shader_resource_view
[
i
][
j
]
=
NULL
;
wined3d_shader_resource_view_decref
(
srv
);
}
}
}
}
...
...
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