Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/drm/egl_gbm_backend.cpp
Context not available. | |||||
236 | void EglGbmBackend::presentOnOutput(EglGbmBackend::Output &o) | 236 | void EglGbmBackend::presentOnOutput(EglGbmBackend::Output &o) | ||
---|---|---|---|---|---|
237 | { | 237 | { | ||
238 | eglSwapBuffers(eglDisplay(), o.eglSurface); | 238 | eglSwapBuffers(eglDisplay(), o.eglSurface); | ||
239 | auto oldBuffer = o.buffer; | | |||
240 | o.buffer = m_backend->createBuffer(o.gbmSurface); | 239 | o.buffer = m_backend->createBuffer(o.gbmSurface); | ||
241 | m_backend->present(o.buffer, o.output); | 240 | m_backend->present(o.buffer, o.output); | ||
242 | delete oldBuffer; | | |||
243 | if (supportsBufferAge()) { | 241 | if (supportsBufferAge()) { | ||
244 | eglQuerySurface(eglDisplay(), o.eglSurface, EGL_BUFFER_AGE_EXT, &o.bufferAge); | 242 | eglQuerySurface(eglDisplay(), o.eglSurface, EGL_BUFFER_AGE_EXT, &o.bufferAge); | ||
245 | } | 243 | } | ||
Context not available. |