platforms/drm: make context current for direct scanout

This commit is contained in:
Xaver Hugl 2021-06-07 13:45:50 +02:00
parent cfd7af0179
commit 0208f78336

View file

@ -828,6 +828,8 @@ bool EglGbmBackend::scanout(int screenId, SurfaceItem *surfaceItem)
output.buffer = QSharedPointer<DrmGbmBuffer>::create(m_gpu, importedBuffer, buffer);
auto oldSurface = output.surfaceInterface;
output.surfaceInterface = surface;
// ensure that a context is current like with normal presentation
makeCurrent();
if (presentOnOutput(output, damage)) {
if (oldSurface != surface) {
auto path = surface->client()->executablePath();