Bug 549747 - Add a null check for tex in WebGLContext::FramebufferTexture2D. r=vlad

This commit is contained in:
Markus Stange 2010-03-08 13:27:22 +01:00
Родитель 8ade572c07
Коммит 732b7af71a
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -932,7 +932,7 @@ WebGLContext::FramebufferTexture2D(GLenum target,
MakeContextCurrent(); MakeContextCurrent();
gl->fFramebufferTexture2D(target, attachment, textarget, tex->GLName(), level); gl->fFramebufferTexture2D(target, attachment, textarget, tex ? tex->GLName() : 0, level);
return NS_OK; return NS_OK;
} }