mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 04:45:45 +00:00
Bug 1276093 - Warn when we fail to hit the GPU-copy fast-path. - r=jrmuizel
This commit is contained in:
parent
20401f453e
commit
cb9b33550e
@ -312,6 +312,10 @@ TexUnpackImage::TexOrSubImage(bool isSubImage, bool needsRespec, const char* fun
|
||||
return; // Blitting was successful, so we're done!
|
||||
} while (false);
|
||||
|
||||
webgl->GenerateWarning("%s: Failed to hit GPU-copy fast-path. Falling back to CPU"
|
||||
" upload.",
|
||||
funcName);
|
||||
|
||||
RefPtr<SourceSurface> surface = mImage->GetAsSourceSurface();
|
||||
if (!surface) {
|
||||
*out_glError = LOCAL_GL_OUT_OF_MEMORY;
|
||||
|
Loading…
Reference in New Issue
Block a user