No Issue - Fix intermitted crash on MacOS 14 Sonoma Beta 3. Not sure why this is happening but mIOSurface is nullptr. If we just skip binding, it will be created on the next call to BeginUpdate.

This commit is contained in:
Brian Smith 2023-07-17 02:01:35 -05:00 committed by roytam1
commit 0fc38724d1

View file

@ -144,7 +144,7 @@ RectTextureImage::DeleteTexture()
void
RectTextureImage::BindIOSurfaceToTexture(gl::GLContext* aGL)
{
if (!mTexture) {
if (!mTexture && mIOSurface) {
MOZ_ASSERT(aGL);
aGL->fGenTextures(1, &mTexture);
aGL->fActiveTexture(LOCAL_GL_TEXTURE0);