platforms/drm: make context current for direct scanout
This commit is contained in:
parent
cfd7af0179
commit
0208f78336
1 changed files with 2 additions and 0 deletions
|
@ -828,6 +828,8 @@ bool EglGbmBackend::scanout(int screenId, SurfaceItem *surfaceItem)
|
||||||
output.buffer = QSharedPointer<DrmGbmBuffer>::create(m_gpu, importedBuffer, buffer);
|
output.buffer = QSharedPointer<DrmGbmBuffer>::create(m_gpu, importedBuffer, buffer);
|
||||||
auto oldSurface = output.surfaceInterface;
|
auto oldSurface = output.surfaceInterface;
|
||||||
output.surfaceInterface = surface;
|
output.surfaceInterface = surface;
|
||||||
|
// ensure that a context is current like with normal presentation
|
||||||
|
makeCurrent();
|
||||||
if (presentOnOutput(output, damage)) {
|
if (presentOnOutput(output, damage)) {
|
||||||
if (oldSurface != surface) {
|
if (oldSurface != surface) {
|
||||||
auto path = surface->client()->executablePath();
|
auto path = surface->client()->executablePath();
|
||||||
|
|
Loading…
Reference in a new issue