mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 869331 - Flush the SkiaGL canvas before right present. r=gw280
This commit is contained in:
parent
0a4b48546d
commit
eec514e788
@ -441,6 +441,11 @@ public:
|
|||||||
static_cast<CanvasRenderingContext2DUserData*>(aData);
|
static_cast<CanvasRenderingContext2DUserData*>(aData);
|
||||||
CanvasRenderingContext2D* context = self->mContext;
|
CanvasRenderingContext2D* context = self->mContext;
|
||||||
if (self->mContext && context->mGLContext) {
|
if (self->mContext && context->mGLContext) {
|
||||||
|
if (self->mContext->mTarget != nullptr) {
|
||||||
|
// Since SkiaGL default to store drawing command until flush
|
||||||
|
// We will have to flush it before present.
|
||||||
|
self->mContext->mTarget->Flush();
|
||||||
|
}
|
||||||
context->mGLContext->MakeCurrent();
|
context->mGLContext->MakeCurrent();
|
||||||
context->mGLContext->PublishFrame();
|
context->mGLContext->PublishFrame();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user