зеркало из https://github.com/mozilla/gecko-dev.git
Bug 549747 - Add a null check for tex in WebGLContext::FramebufferTexture2D. r=vlad
This commit is contained in:
Родитель
8ade572c07
Коммит
732b7af71a
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче