mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Bug 1382185 - Check the status of GLContext::MakeCurrent in TexUnpackBlob.cpp. r=jgilber
This commit is contained in:
parent
13f0f93675
commit
4c59337e27
@ -887,7 +887,10 @@ TexUnpackSurface::TexOrSubImage(bool isSubImage, bool needsRespec, const char* f
|
||||
////
|
||||
|
||||
const auto& gl = webgl->gl;
|
||||
MOZ_ALWAYS_TRUE( gl->MakeCurrent() );
|
||||
if (!gl->MakeCurrent()) {
|
||||
*out_error = LOCAL_GL_CONTEXT_LOST;
|
||||
return true;
|
||||
}
|
||||
|
||||
gl->fPixelStorei(LOCAL_GL_UNPACK_ALIGNMENT, dstAlignment);
|
||||
if (webgl->IsWebGL2()) {
|
||||
|
Loading…
Reference in New Issue
Block a user