mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 882590 - Fix invalid assertion when creating a SharedSurface_GLTexture without a consumer GLContext. r=jgilbert
This commit is contained in:
parent
66a85c4495
commit
9547a3712c
@ -314,8 +314,8 @@ SharedSurface_GLTexture::Create(GLContext* prodGL,
|
||||
const gfxIntSize& size,
|
||||
bool hasAlpha)
|
||||
{
|
||||
MOZ_ASSERT(prodGL && consGL);
|
||||
MOZ_ASSERT(prodGL->SharesWith(consGL));
|
||||
MOZ_ASSERT(prodGL);
|
||||
MOZ_ASSERT(!consGL || prodGL->SharesWith(consGL));
|
||||
|
||||
prodGL->MakeCurrent();
|
||||
GLuint tex = prodGL->CreateTextureForOffscreen(formats, size);
|
||||
@ -386,6 +386,7 @@ SharedSurface_GLTexture::SetConsumerGL(GLContext* consGL)
|
||||
{
|
||||
MutexAutoLock lock(mMutex);
|
||||
MOZ_ASSERT(consGL);
|
||||
MOZ_ASSERT(mGL->SharesWith(consGL));
|
||||
mConsGL = consGL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user