diff options
author | Brian Smith <brian@dbsoft.org> | 2023-07-17 02:01:35 -0500 |
---|---|---|
committer | Brian Smith <brian@dbsoft.org> | 2023-07-17 02:01:35 -0500 |
commit | 8c25550bafe1145a8b697b210e7d1879a7f7d1ac (patch) | |
tree | 9b2e3318e6d7140d2e35030e9725bc1cec357320 | |
parent | cd0c08484dd8681e20191592527f8b23a8d3c06c (diff) | |
download | uxp-8c25550bafe1145a8b697b210e7d1879a7f7d1ac.tar.gz |
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.
-rw-r--r-- | widget/cocoa/RectTextureImage.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/widget/cocoa/RectTextureImage.mm b/widget/cocoa/RectTextureImage.mm index c67af97d0a..270ac5d8b5 100644 --- a/widget/cocoa/RectTextureImage.mm +++ b/widget/cocoa/RectTextureImage.mm @@ -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); |