summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Smith <brian@dbsoft.org>2023-07-17 02:01:35 -0500
committerBrian Smith <brian@dbsoft.org>2023-07-17 02:01:35 -0500
commit8c25550bafe1145a8b697b210e7d1879a7f7d1ac (patch)
tree9b2e3318e6d7140d2e35030e9725bc1cec357320
parentcd0c08484dd8681e20191592527f8b23a8d3c06c (diff)
downloaduxp-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.mm2
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);