mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-21 09:49:14 +00:00
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:
parent
2f7c2f2b2f
commit
7d1bbd8f2d
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user