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
0bdb6ffe
Commit
0bdb6ffe
authored
Aug 10, 2016
by
Henri Verbeet
Committed by
Alexandre Julliard
Aug 11, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Use wined3d_cs_emit_unload_resource() in delete_opengl_contexts().
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e38cbd82
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
device.c
dlls/wined3d/device.c
+4
-4
No files found.
dlls/wined3d/device.c
View file @
0bdb6ffe
...
...
@@ -4556,13 +4556,10 @@ static void delete_opengl_contexts(struct wined3d_device *device, struct wined3d
struct
wined3d_context
*
context
;
struct
wined3d_shader
*
shader
;
context
=
context_acquire
(
device
,
NULL
);
gl_info
=
context
->
gl_info
;
LIST_FOR_EACH_ENTRY_SAFE
(
resource
,
cursor
,
&
device
->
resources
,
struct
wined3d_resource
,
resource_list_entry
)
{
TRACE
(
"Unloading resource %p.
\n
"
,
resource
);
resource
->
resource_ops
->
resource_unload
(
resource
);
wined3d_cs_emit_unload_resource
(
device
->
cs
,
resource
);
}
LIST_FOR_EACH_ENTRY
(
shader
,
&
device
->
shaders
,
struct
wined3d_shader
,
shader_list_entry
)
...
...
@@ -4570,6 +4567,9 @@ static void delete_opengl_contexts(struct wined3d_device *device, struct wined3d
device
->
shader_backend
->
shader_destroy
(
shader
);
}
context
=
context_acquire
(
device
,
NULL
);
gl_info
=
context
->
gl_info
;
if
(
device
->
depth_blt_texture
)
{
gl_info
->
gl_ops
.
gl
.
p_glDeleteTextures
(
1
,
&
device
->
depth_blt_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