diff --git a/autotests/integration/generic_scene_opengl_test.cpp b/autotests/integration/generic_scene_opengl_test.cpp
index 4bae9b739e..f5560173e3 100644
--- a/autotests/integration/generic_scene_opengl_test.cpp
+++ b/autotests/integration/generic_scene_opengl_test.cpp
@@ -22,7 +22,7 @@ along with this program. If not, see .
#include "effectloader.h"
#include "cursor.h"
#include "platform.h"
-#include "scene_opengl.h"
+#include "scene.h"
#include "shell_client.h"
#include "wayland_server.h"
#include "effect_builtins.h"
@@ -105,8 +105,9 @@ void GenericSceneOpenGLTest::testRestart()
QVERIFY(sceneCreatedSpy.wait());
}
QCOMPARE(sceneCreatedSpy.count(), 1);
- auto scene = qobject_cast(KWin::Compositor::self()->scene());
+ auto scene = KWin::Compositor::self()->scene();
QVERIFY(scene);
+ QCOMPARE(scene->compositingType(), KWin::OpenGL2Compositing);
// trigger a repaint
KWin::Compositor::self()->addRepaintFull();