Changeset View
Changeset View
Standalone View
Standalone View
plugins/qpa/window.cpp
Show First 20 Lines • Show All 142 Lines • ▼ Show 20 Line(s) | 140 | { | |||
---|---|---|---|---|---|
143 | } | 143 | } | ||
144 | m_contentFBO->bind(); | 144 | m_contentFBO->bind(); | ||
145 | } | 145 | } | ||
146 | 146 | | |||
147 | QSharedPointer<QOpenGLFramebufferObject> Window::swapFBO() | 147 | QSharedPointer<QOpenGLFramebufferObject> Window::swapFBO() | ||
148 | { | 148 | { | ||
149 | auto fbo = m_contentFBO; | 149 | auto fbo = m_contentFBO; | ||
150 | m_contentFBO.clear(); | 150 | m_contentFBO.clear(); | ||
151 | m_surface->commit(KWayland::Client::Surface::CommitFlag::None); | ||||
151 | return fbo; | 152 | return fbo; | ||
152 | } | 153 | } | ||
153 | 154 | | |||
154 | void Window::createFBO() | 155 | void Window::createFBO() | ||
155 | { | 156 | { | ||
156 | const QRect &r = geometry(); | 157 | const QRect &r = geometry(); | ||
157 | if (m_contentFBO && r.size().isEmpty()) { | 158 | if (m_contentFBO && r.size().isEmpty()) { | ||
158 | return; | 159 | return; | ||
Show All 19 Lines |