Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
1120f0f5
Commit
1120f0f5
authored
Apr 06, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 06, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Unset the current GLSL program when it's destroyed.
parent
95156d1b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
glsl_shader.c
dlls/wined3d/glsl_shader.c
+4
-0
No files found.
dlls/wined3d/glsl_shader.c
View file @
1120f0f5
...
...
@@ -3766,9 +3766,13 @@ static void shader_glsl_destroy(IWineD3DBaseShader *iface) {
if
(
pshader
)
{
ps
=
(
IWineD3DPixelShaderImpl
*
)
This
;
if
(
ps
->
num_gl_shaders
==
0
)
return
;
if
(
priv
->
glsl_program
&&
(
IWineD3DBaseShader
*
)
priv
->
glsl_program
->
pshader
==
iface
)
shader_glsl_select
(
This
->
baseShader
.
device
,
FALSE
,
FALSE
);
}
else
{
vs
=
(
IWineD3DVertexShaderImpl
*
)
This
;
if
(
vs
->
num_gl_shaders
==
0
)
return
;
if
(
priv
->
glsl_program
&&
(
IWineD3DBaseShader
*
)
priv
->
glsl_program
->
vshader
==
iface
)
shader_glsl_select
(
This
->
baseShader
.
device
,
FALSE
,
FALSE
);
}
linked_programs
=
&
This
->
baseShader
.
linked_programs
;
...
...
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