mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 917160 - AssureBlitted before switching EGLSurfaces with MakeCurrent. - r=bjacob
This commit is contained in:
parent
27cbab7ee2
commit
a4398dc7ad
@ -475,6 +475,15 @@ public:
|
||||
return;
|
||||
|
||||
// Else, surface changed...
|
||||
if (Screen()) {
|
||||
/* Blit `draw` to `read` if we need to, before we potentially juggle
|
||||
* `read` around. If we don't, we might attach a different `read`,
|
||||
* and *then* hit AssureBlitted, which will blit a dirty `draw` onto
|
||||
* the wrong `read`!
|
||||
*/
|
||||
Screen()->AssureBlitted();
|
||||
}
|
||||
|
||||
mCurSurface = eglSurface;
|
||||
MakeCurrent(true);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user