Fix DebugConsole::initGLTab
The initGLTab used GLPlatform::instance to determine whether OpenGL is used. It assumed a nullptr would mean no GL. But GLPlatform is a singleton which does not follow KWin's internal semantics. If there is no instance it will be created. Thus it's never null. This caused a heap-buffer-overflow as recorded by build.kde.org in case one just casts the scene pointer to SceneOpenGL. With this change this is fixed and inited correctly by verifying through the EffectsHandler whether opengl is used.
parent
52cf47ff
Please register or sign in to comment