Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Unmaintained
KDE Workspace
Commits
40b06e71
Commit
40b06e71
authored
Feb 10, 2012
by
Thomas Lübking
Browse files
fix NPOT + raster decoration
BUG: 282882
parent
40f07707
Changes
1
Hide whitespace changes
Inline
Side-by-side
kwin/scene_opengl.cpp
View file @
40b06e71
...
...
@@ -712,8 +712,8 @@ void SceneOpenGL::Window::makeDecorationArrays(const WindowQuadList& quads, cons
QVector
<
float
>
texcoords
;
vertices
.
reserve
(
quads
.
count
()
*
6
*
2
);
texcoords
.
reserve
(
quads
.
count
()
*
6
*
2
);
float
width
=
tex
->
size
()
.
width
();
float
height
=
tex
->
size
()
.
height
();
float
width
=
rect
.
width
();
float
height
=
rect
.
height
();
#ifndef KWIN_HAVE_OPENGLES
if
(
tex
->
target
()
==
GL_TEXTURE_RECTANGLE_ARB
)
{
width
=
1.0
;
...
...
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