summaryrefslogtreecommitdiff
path: root/widget/cocoa/RectTextureImage.mm
diff options
context:
space:
mode:
Diffstat (limited to 'widget/cocoa/RectTextureImage.mm')
-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);