Martin Gräßlin
9865608fb3
Fix a merge regression in Texture::release.
...
Seems to be a lost change caused by rebasing moved code.
2011-02-05 13:51:52 +01:00
Fredrik Höglund
d4ba7b5e6b
kwin: Fix the glBlendFunc() in the shader case.
...
The RGB values were being multiplied by the alpha value twice.
2011-02-05 13:51:52 +01:00
Marco Martin
783cde7bbd
Merge remote branch 'origin/master' into plasma/keyboard_applet_svgtext/mart
2011-02-04 22:40:07 +01:00
Fredrik Höglund
03ba96420a
kwin: Add overloads for setUniform() that take a location.
2011-02-04 21:23:29 +01:00
Martin Gräßlin
9bfef5d4ca
Drop addQuadVertices from kwinglutils.
...
KWin does not use GL_QUADS anymore for rendering windows.
This makes this method rather useless and isn't used anywhere either.
2011-02-04 21:23:29 +01:00
Martin Gräßlin
9814a8e81b
Remove renderGLGeometry from kwinglutils.
...
Not used anymore - completely replaced by VBO.
2011-02-04 21:23:29 +01:00
Fredrik Höglund
5cbd1d458b
kwin: Static member variables shouldn't have the m prefix.
2011-02-04 21:23:29 +01:00
Fredrik Höglund
cf58a57cf4
kwin: Fix a compiler warning about initialization order.
2011-02-04 21:23:29 +01:00
Fredrik Höglund
4dd9ef3327
kwin: Clean up the shader compilation code a bit.
2011-02-04 21:23:29 +01:00
Fredrik Höglund
ca8857a4d9
kwin: Change the shader source code parameters from QStrings to QByteArrays.
...
This eliminates the QByteArray -> QString -> QByteArray conversions.
2011-02-04 21:23:28 +01:00
Fredrik Höglund
8bc586e613
kwin: Add overloads for setUniform() that take a location.
2011-02-04 19:57:19 +01:00
Martin Gräßlin
859dadffd8
Drop addQuadVertices from kwinglutils.
...
KWin does not use GL_QUADS anymore for rendering windows.
This makes this method rather useless and isn't used anywhere either.
2011-02-04 19:46:20 +01:00
Martin Gräßlin
2e2a7948fb
Remove renderGLGeometry from kwinglutils.
...
Not used anymore - completely replaced by VBO.
2011-02-04 19:38:27 +01:00
Fredrik Höglund
f7633fff23
kwin: Static member variables shouldn't have the m prefix.
2011-02-04 17:32:13 +01:00
Fredrik Höglund
9dfc0332c6
kwin: Fix a compiler warning about initialization order.
2011-02-04 17:06:28 +01:00
Fredrik Höglund
f21ccf028a
kwin: Clean up the shader compilation code a bit.
2011-02-04 17:03:56 +01:00
Fredrik Höglund
9f41472085
kwin: Change the shader source code parameters from QStrings to QByteArrays.
...
This eliminates the QByteArray -> QString -> QByteArray conversions.
2011-02-04 16:41:55 +01:00
Christoph Thielecke
f95b82a907
define missing macros for systems which have only EXT defines.
...
these are:
- GL_FRAMEBUFFER
- GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
- GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT
- GL_FRAMEBUFFER_UNSUPPORTED
- GL_COLOR_ATTACHMENT0
- GL_FRAMEBUFFER_COMPLETE
2011-02-04 08:34:19 +01:00
Script Kiddy
b90312c031
SVN_SILENT made messages (.desktop file)
2011-02-04 06:46:03 +01:00
Martin Gräßlin
d9dc5afae4
Only link against GLES if building for GLES.
...
It took me two hours to figure out that kwineffects linked the GLES libraries
and that was causing my kwin not to work :-(
2011-02-03 22:30:14 +01:00
Script Kiddy
15155326e2
SVN_SILENT made messages (.desktop file)
2011-02-03 07:25:47 +01:00
Hugo Pereira Da Costa
488b3644d5
Changed handling of shadow overlap with window content
...
Oxygen::ShadowCache::shadowSize() now returns the shadow extend outside of the window body (the extend)
Overlab between the actual shadow pixmap and the window body is dealt with internally (by creating larger pixmaps)
This allows notably Oxygen::Client to not attempt to draw shadow when shadowSize == 0 (which was never the case
before)
2011-02-02 17:23:08 +01:00
Hugo Pereira Da Costa
c1ff9525e3
Removed obsolete ShadowCache::Key::useOxygenShadows flag
...
The flag has been made obsolete by the fact that window corners are not part of the shadow anymore.
Configuration::useOxygenShadows is now dealt with by setting the active flag directly.
2011-02-02 17:21:12 +01:00
Script Kiddy
b637e9d7ca
SVN_SILENT made messages (.desktop file)
2011-02-02 08:26:11 +01:00
Martin Gräßlin
27c2b599b7
Bump the effects API version for 4.7.
...
Better late than never. As always keeping a buffer for API breaks in stable branch.
2011-02-01 23:05:21 +01:00
Martin Gräßlin
54c0a913b9
Fixing broken Invert effect build.
...
Forgot to remove the header file for shadereffect, though
it was not used anymore in the effect.
CCMAIL: hein@kde.org
2011-02-01 20:13:26 +01:00
Eike Hein
39f57a472f
Disable the invert effect to unbreak the workspace build.
...
invert.cpp refers to the apparently removed kwinshadereffect.h,
so it's probably missing out on some sort of porting activity.
CCMAIL:kde@martin-graesslin.com
2011-02-01 19:52:03 +01:00
Fredrik Höglund
09dc033e8c
kwin: Use QDateTime::currentMSecsSinceEpoch() instead of QTime::currentTime().
2011-02-01 16:38:06 +01:00
Fredrik Höglund
2d81d28e7a
kwin: Use QBasicTimer instead of managing the timer ID manually.
2011-02-01 16:35:51 +01:00
Montel Laurent
91bf3ab073
Fix ui files
2011-02-01 13:16:06 +01:00
Martin Gräßlin
bf8c67c156
Merge branch 'kwin-coding-style'
2011-01-31 22:08:08 +01:00
Martin Gräßlin
c0c7255751
Merge branch 'kwin-cleanup'
2011-01-31 22:07:53 +01:00
Martin Gräßlin
7132f5cdbc
Merge branch 'kwin-gles'
2011-01-31 22:07:39 +01:00
Martin Gräßlin
0a7e48f7aa
KWin uses kdelibs coding style.
2011-01-31 20:07:03 +01:00
Kevin Ottens
de2c5b91f1
The demo needs to find the lib oxygen headers.
2011-01-30 17:34:15 +01:00
Fredrik Höglund
1a5b3b4bea
Disable and delete the fragment program if it fails to compile.
...
svn path=/branches/KDE/4.6/kdebase/workspace/; revision=1215777
2011-01-30 15:25:01 +01:00
Fredrik Höglund
8bc99e68c0
Don't specify the texture target explicitly with r300g.
...
This is reported to cause a performance regression.
FIXED-IN: 4.6.0
BUG: 256654
svn path=/branches/KDE/4.6/kdebase/workspace/; revision=1215519
2011-01-30 15:24:31 +01:00
Fredrik Höglund
bfa2fc68e6
Rewrite the ARB lanczos shader to work with the Radeon R300 limitations.
...
svn path=/branches/KDE/4.6/kdebase/workspace/; revision=1215505
2011-01-30 15:11:22 +01:00
Fredrik Höglund
1a93cc40d2
Disable the lanczos filter with the Intel driver in Mesa 7.10.
...
It's reported to cause kwin to hang when rendering thumbnails.
svn path=/branches/KDE/4.6/kdebase/workspace/; revision=1215502
2011-01-30 15:07:41 +01:00
Fredrik Höglund
3ada211c30
Don't enable loose binding with Gallium drivers in Mesa 7.10.
...
It's currently broken because of a regression in the mesa state tracker.
FIXED-IN: 4.6.0
BUG: 259872
svn path=/branches/KDE/4.6/kdebase/workspace/; revision=1213870
2011-01-30 15:07:40 +01:00
Fredrik Höglund
ee406e6d86
Tweak the debug output to make it more readable.
...
svn path=/branches/KDE/4.6/kdebase/workspace/; revision=1213845
2011-01-30 15:07:40 +01:00
Fredrik Höglund
7d5d8213dd
Don't print the GLSL version when GLSL isn't supported.
...
svn path=/branches/KDE/4.6/kdebase/workspace/; revision=1213843
2011-01-30 15:07:40 +01:00
Fredrik Höglund
1643fdfc63
Add some missing radeon GPU's
...
svn path=/branches/KDE/4.6/kdebase/workspace/; revision=1213842
2011-01-30 15:07:40 +01:00
Fredrik Höglund
83fd472bb3
Fix chipset detection with r300g
...
svn path=/branches/KDE/4.6/kdebase/workspace/; revision=1213841
2011-01-30 15:07:02 +01:00
Martin Gräßlin
cf03487331
Remove Shadow Effect.
...
The shadow effect is known to be broken since at least 4.5.
It is unfortunately in a state which makes it difficult to maintain
and the architecture has some serious drawbacks. Therefore it is the
best solution to replace the effect with a new and better
implementation. For more information about the new implementation
please see the discussion on KWin mailinglist:
http://lists.kde.org/?l=kwin&m=129607406517609&w=2
This also "fixes" all existing bug reports about the shadow effect.
Most of the bugs will really be fixed when the new shadow system is
implemented, if not it is a new bug and a new report should be created
for it.
Please excuse that we go this unnormal approach to mark bugs as
fixed with code removal.
BUG: 164084
BUG: 160948
BUG: 189241
BUG: 229164
BUG: 258663
BUG: 216709
BUG: 243890
FIXED-IN: 4.7.0
2011-01-30 14:26:58 +01:00
Martin Gräßlin
cf94a0e8f8
Binding shaders moved explicitly to ShaderManager.
2011-01-30 14:24:49 +01:00
Martin Gräßlin
45c7610d22
Removing popupinfo files.
...
Code has not been used since the introduction of the desktop
change osd.
2011-01-30 14:24:48 +01:00
Martin Gräßlin
fe069f188b
Option AltTabStyle not used anymore.
...
This should have been removed together with the tabbox rewrite.
2011-01-30 14:24:48 +01:00
Martin Gräßlin
2f56415a21
Removing SHM and Fallback OpenGL Compositing modes.
...
Our primary target is Texture From Pixmap and it is supported
by all important drivers nowadays. If a driver is not able to
support TFP using OpenGL at all is probably no good idea and
XRender is more suited.
2011-01-30 14:24:48 +01:00
Martin Gräßlin
1b70279664
Removing Xgl support from KWin.
...
Xgl has been removed from the X tree in 2008. It does not make sense
to still support it in KWin.
2011-01-30 14:24:48 +01:00