зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1188010 - Use MOZ_RELEASE_ASSERT. r=dglastonbury
Use MOZ_RELEASE_ASSERT when failure means overflows. From b9fe1e06f63a785f309e1ce7e5053cb57e21e634 Mon Sep 17 00:00:00 2001 --- dom/canvas/WebGLTexture.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --HG-- extra : rebase_source : 81b89bbd224d6f77f62c5fa5f2ac8b14a8373128
This commit is contained in:
Родитель
2f7c2f2b2f
Коммит
7d1bbd8f2d
|
@ -648,8 +648,7 @@ WebGLTexture::EnsureInitializedImageData(TexImageTarget imageTarget,
|
||||||
imageInfo.mDepth,
|
imageInfo.mDepth,
|
||||||
bytespertexel,
|
bytespertexel,
|
||||||
mContext->mPixelStoreUnpackAlignment);
|
mContext->mPixelStoreUnpackAlignment);
|
||||||
MOZ_ASSERT(checked_byteLength.isValid()); // Should have been checked
|
MOZ_RELEASE_ASSERT(checked_byteLength.isValid()); // Should have been checked earlier.
|
||||||
// earlier.
|
|
||||||
|
|
||||||
size_t byteCount = checked_byteLength.value();
|
size_t byteCount = checked_byteLength.value();
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче