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
bf187ed1
Commit
bf187ed1
authored
Oct 20, 2008
by
Henri Verbeet
Committed by
Alexandre Julliard
Oct 20, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Set the sampler only once in shader_glsl_select_depth_blt().
It (obviously) never changes.
parent
2188aa87
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
glsl_shader.c
dlls/wined3d/glsl_shader.c
+5
-4
No files found.
dlls/wined3d/glsl_shader.c
View file @
bf187ed1
...
...
@@ -3458,15 +3458,16 @@ static void shader_glsl_select_depth_blt(IWineD3DDevice *iface) {
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
WineD3D_GL_Info
*
gl_info
=
&
This
->
adapter
->
gl_info
;
struct
shader_glsl_priv
*
priv
=
(
struct
shader_glsl_priv
*
)
This
->
shader_priv
;
static
GLhandleARB
loc
=
-
1
;
if
(
!
priv
->
depth_blt_glsl_program_id
)
{
GLhandleARB
loc
;
priv
->
depth_blt_glsl_program_id
=
create_glsl_blt_shader
(
gl_info
);
loc
=
GL_EXTCALL
(
glGetUniformLocationARB
(
priv
->
depth_blt_glsl_program_id
,
"sampler"
));
GL_EXTCALL
(
glUseProgramObjectARB
(
priv
->
depth_blt_glsl_program_id
));
GL_EXTCALL
(
glUniform1iARB
(
loc
,
0
));
}
else
{
GL_EXTCALL
(
glUseProgramObjectARB
(
priv
->
depth_blt_glsl_program_id
));
}
GL_EXTCALL
(
glUseProgramObjectARB
(
priv
->
depth_blt_glsl_program_id
));
GL_EXTCALL
(
glUniform1iARB
(
loc
,
0
));
}
static
void
shader_glsl_deselect_depth_blt
(
IWineD3DDevice
*
iface
)
{
...
...
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