Bug 1415754 - check the mHandle status before using in RenderDXGITextureHostOGL::EnsureLockable(). r=jgilbert

MozReview-Commit-ID: AkyStTSjS8F
This commit is contained in:
JerryShih 2017-11-28 20:04:00 +08:00
parent de06fec4cc
commit f0fef8ac17

View File

@ -77,6 +77,10 @@ RenderDXGITextureHostOGL::EnsureLockable()
return false;
}
if (!mHandle) {
return false;
}
// Get gl texture handle from shared handle.
EGLint pbufferAttributes[] = {
LOCAL_EGL_WIDTH, mSize.width,