From 3f09cdc2d110c6750dd8c52f25d3d3b40182a5f7 Mon Sep 17 00:00:00 2001 From: Markus Stange Date: Mon, 8 Mar 2010 13:27:22 +0100 Subject: [PATCH] Bug 549747 - Add a null check for tex in WebGLContext::FramebufferTexture2D. r=vlad --- content/canvas/src/WebGLContextGL.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/canvas/src/WebGLContextGL.cpp b/content/canvas/src/WebGLContextGL.cpp index d4736a4a9b6..2a8ae0c75b8 100644 --- a/content/canvas/src/WebGLContextGL.cpp +++ b/content/canvas/src/WebGLContextGL.cpp @@ -932,7 +932,7 @@ WebGLContext::FramebufferTexture2D(GLenum target, MakeContextCurrent(); - gl->fFramebufferTexture2D(target, attachment, textarget, tex->GLName(), level); + gl->fFramebufferTexture2D(target, attachment, textarget, tex ? tex->GLName() : 0, level); return NS_OK; }