mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 980178 - Hold a strong ref to the WebGLContext in the task. - r=kamidphish
This commit is contained in:
parent
554c1772a5
commit
4d541b02e7
@ -1183,7 +1183,7 @@ WebGLContext::TryToRestoreContext()
|
||||
|
||||
class UpdateContextLossStatusTask : public nsRunnable
|
||||
{
|
||||
WebGLContext* const mContext;
|
||||
nsRefPtr<WebGLContext> mContext;
|
||||
|
||||
public:
|
||||
UpdateContextLossStatusTask(WebGLContext* context)
|
||||
@ -1232,6 +1232,7 @@ WebGLContext::UpdateContextLossStatus()
|
||||
// check. If we're guilty, don't allow restores, though.
|
||||
|
||||
bool isGuilty = true;
|
||||
MOZ_ASSERT(gl); // Shouldn't be missing gl if we're NotLost.
|
||||
bool isContextLost = CheckContextLost(gl, &isGuilty);
|
||||
|
||||
if (isContextLost) {
|
||||
|
Loading…
Reference in New Issue
Block a user