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
04ae7c86
Commit
04ae7c86
authored
Jan 06, 2011
by
Martin Flöser
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove too strong error checks.
That should never have been committed, it was just for finding an error.
parent
02da6eb7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
7 deletions
+0
-7
kwin/effects/lookingglass/lookingglass.cpp
kwin/effects/lookingglass/lookingglass.cpp
+0
-7
No files found.
kwin/effects/lookingglass/lookingglass.cpp
View file @
04ae7c86
...
...
@@ -218,7 +218,6 @@ void LookingGlassEffect::prePaintScreen( ScreenPrePaintData& data, int time )
data
.
mask
|=
PAINT_SCREEN_WITH_TRANSFORMED_WINDOWS
;
// Start rendering to texture
effects
->
pushRenderTarget
(
m_fbo
);
checkGLError
(
"push Render Target"
);
}
effects
->
prePaintScreen
(
data
,
time
);
...
...
@@ -240,24 +239,18 @@ void LookingGlassEffect::postPaintScreen()
effects
->
postPaintScreen
();
if
(
m_valid
&&
m_enabled
)
{
// Disable render texture
checkGLError
(
"Before Pop Render Target"
);
GLRenderTarget
*
target
=
effects
->
popRenderTarget
();
checkGLError
(
"Pop Render Target"
);
assert
(
target
==
m_fbo
);
Q_UNUSED
(
target
);
m_texture
->
bind
();
checkGLError
(
"Bind Texture"
);
// Use the shader
ShaderManager
::
instance
()
->
pushShader
(
m_shader
);
m_shader
->
setUniform
(
"u_zoom"
,
(
float
)
zoom
);
m_shader
->
setUniform
(
"u_radius"
,
(
float
)
radius
);
checkGLError
(
"Bind Shader"
);
m_shader
->
setUniform
(
"u_cursor"
,
QVector2D
(
cursorPos
().
x
(),
cursorPos
().
y
()));
m_vbo
->
render
(
GL_TRIANGLES
);
checkGLError
(
"Render VBO"
);
ShaderManager
::
instance
()
->
popShader
();
checkGLError
(
"Pop Shader"
);
m_texture
->
unbind
();
}
}
...
...
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