Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Unmaintained
KDE Workspace
Commits
9ce57a76
Commit
9ce57a76
authored
Jan 30, 2011
by
Martin Flöser
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use ShaderManager to bind the shader in Lanczos.
parent
339b136d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
kwin/lanczosfilter.cpp
kwin/lanczosfilter.cpp
+2
-2
No files found.
kwin/lanczosfilter.cpp
View file @
9ce57a76
...
...
@@ -633,11 +633,11 @@ bool LanczosShader::init()
m_shader
=
ShaderManager
::
instance
()
->
loadFragmentShader
(
ShaderManager
::
SimpleShader
,
":/resources/lanczos-fragment.glsl"
);
if
(
m_shader
->
isValid
())
{
m_s
hader
->
bind
(
);
S
hader
Manager
::
instance
()
->
pushShader
(
m_shader
);
m_uTexUnit
=
m_shader
->
uniformLocation
(
"texUnit"
);
m_uKernel
=
m_shader
->
uniformLocation
(
"kernel"
);
m_uOffsets
=
m_shader
->
uniformLocation
(
"offsets"
);
m_s
hader
->
unbind
();
S
hader
Manager
::
instance
()
->
popShader
();
return
true
;
}
else
...
...
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