KWin
Loading...
Searching...
No Matches
abstract_opengl_context_attribute_builder.cpp
Go to the documentation of this file.
1/*
2 KWin - the KDE window manager
3 This file is part of the KDE project.
4
5 SPDX-FileCopyrightText: 2017 Martin Flöser <mgraesslin@kde.org>
6
7 SPDX-License-Identifier: GPL-2.0-or-later
8*/
10
11namespace KWin
12{
13
15{
16 QDebugStateSaver saver(dbg);
17 dbg.nospace() << "\nVersion requested:\t" << isVersionRequested() << "\n";
18 if (isVersionRequested()) {
19 dbg.nospace() << "Version:\t" << majorVersion() << "." << minorVersion() << "\n";
20 }
21 dbg.nospace() << "Robust:\t" << isRobust() << "\n";
22 dbg.nospace() << "Reset on video memory purge:\t" << isResetOnVideoMemoryPurge() << "\n";
23 dbg.nospace() << "Forward compatible:\t" << isForwardCompatible() << "\n";
24 dbg.nospace() << "Core profile:\t" << isCoreProfile() << "\n";
25 dbg.nospace() << "Compatibility profile:\t" << isCompatibilityProfile() << "\n";
26 dbg.nospace() << "High priority:\t" << isHighPriority();
27 return dbg;
28}
29
30}