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:
jdashg 2015-07-29 14:37:54 -07:00
Родитель 2f7c2f2b2f
Коммит 7d1bbd8f2d
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -648,8 +648,7 @@ WebGLTexture::EnsureInitializedImageData(TexImageTarget imageTarget,
imageInfo.mDepth,
bytespertexel,
mContext->mPixelStoreUnpackAlignment);
MOZ_ASSERT(checked_byteLength.isValid()); // Should have been checked
// earlier.
MOZ_RELEASE_ASSERT(checked_byteLength.isValid()); // Should have been checked earlier.
size_t byteCount = checked_byteLength.value();