Skip to content
  • Martin Flöser's avatar
    Fix DebugConsole::initGLTab · 9e4a8582
    Martin Flöser authored
    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.
    9e4a8582