Bug 299426 - Shader Effects get loaded with OpenGL 1 backend
Summary: Shader Effects get loaded with OpenGL 1 backend
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: compositing (show other bugs)
Version: 4.8.1
Platform: unspecified Linux
: NOR normal
Target Milestone: 4.8.4
Assignee: KWin default assignee
URL: https://git.reviewboard.kde.org/r/104...
Keywords: regression
Depends on:
Blocks:
 
Reported: 2012-05-05 08:25 UTC by Martin Flöser
Modified: 2012-05-05 08:28 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 4.8.4
mgraesslin: ReviewRequest+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Flöser 2012-05-05 08:25:55 UTC
Steps to reproduce:
1. Use OpenGL 1 backend
2. Activate e.g. Invert effect

Actual result:
Effect gets loaded without an error message

Expected result:
Effect gets not loaded as it is not supported and an error message is shown.

Reason for incorrect behavior:
Supported methods check for availability of GLSL, while they should test whether GL2 backend is used.
Comment 1 Martin Flöser 2012-05-05 08:26:50 UTC
Git commit db42152def79381547965eaadb3771f0d2fe908c by Martin Gräßlin.
Committed on 04/05/2012 at 11:31.
Pushed by graesslin into branch 'KDE/4.8'.

Properly detect effects which need OpenGL 2

Effects that need GLSL require that OpenGL 2 is active.
It does not matter whether the GPU would support it if
OpenGL 2 is not used.
FIXED-IN: 4.8.4
REVIEW: 104848

M  +5    -2    kwin/effects/explosion/explosion.cpp
M  +5    -2    kwin/effects/invert/invert.cpp
M  +5    -3    kwin/effects/lookingglass/lookingglass.cpp

http://commits.kde.org/kde-workspace/db42152def79381547965eaadb3771f0d2fe908c
Comment 2 Martin Flöser 2012-05-05 08:28:30 UTC
Git commit 302629d5889f7590c48746a8af75962a4fd977d5 by Martin Gräßlin.
Committed on 04/05/2012 at 11:31.
Pushed by graesslin into branch 'master'.

Properly detect effects which need OpenGL 2

Effects that need GLSL require that OpenGL 2 is active.
It does not matter whether the GPU would support it if
OpenGL 2 is not used.

Cherry-picked from db42152

M  +5    -2    kwin/effects/explosion/explosion.cpp
M  +5    -2    kwin/effects/invert/invert.cpp
M  +5    -3    kwin/effects/lookingglass/lookingglass.cpp

http://commits.kde.org/kde-workspace/302629d5889f7590c48746a8af75962a4fd977d5