Changeset View
Changeset View
Standalone View
Standalone View
plugins/qpa/sharingplatformcontext.cpp
Show First 20 Lines • Show All 103 Lines • ▼ Show 20 Line(s) | 99 | if (Window *window = dynamic_cast<Window*>(surface)) { | |||
---|---|---|---|---|---|
104 | qCDebug(KWIN_QPA) << "No default framebuffer object for internal window"; | 104 | qCDebug(KWIN_QPA) << "No default framebuffer object for internal window"; | ||
105 | } | 105 | } | ||
106 | 106 | | |||
107 | return 0; | 107 | return 0; | ||
108 | } | 108 | } | ||
109 | 109 | | |||
110 | void SharingPlatformContext::create() | 110 | void SharingPlatformContext::create() | ||
111 | { | 111 | { | ||
112 | if (config() == 0) { | 112 | if (config() == nullptr) { | ||
113 | qCWarning(KWIN_QPA) << "Did not get an EGL config"; | 113 | qCWarning(KWIN_QPA) << "Did not get an EGL config"; | ||
114 | return; | 114 | return; | ||
115 | } | 115 | } | ||
116 | if (!bindApi()) { | 116 | if (!bindApi()) { | ||
117 | qCWarning(KWIN_QPA) << "Could not bind API."; | 117 | qCWarning(KWIN_QPA) << "Could not bind API."; | ||
118 | return; | 118 | return; | ||
119 | } | 119 | } | ||
120 | createContext(kwinApp()->platform()->sceneEglContext()); | 120 | createContext(kwinApp()->platform()->sceneEglContext()); | ||
121 | } | 121 | } | ||
122 | 122 | | |||
123 | } | 123 | } | ||
124 | } | 124 | } |