mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-02 22:37:50 +00:00
Bug 1759845 - used !foo.empty() instead of foo.size(). r=jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D142263
This commit is contained in:
parent
b9cd81086b
commit
81f464c556
@ -1174,7 +1174,7 @@ void FormatUsageAuthority::AllowSizedTexFormat(GLenum sizedFormat,
|
||||
if (usage->format->compression) {
|
||||
MOZ_ASSERT(usage->isFilterable, "Compressed formats should be filterable.");
|
||||
} else {
|
||||
MOZ_ASSERT(usage->validUnpacks.size() && usage->idealUnpack,
|
||||
MOZ_ASSERT(!usage->validUnpacks.empty() && usage->idealUnpack,
|
||||
"AddTexUnpack() first.");
|
||||
}
|
||||
|
||||
@ -1186,7 +1186,7 @@ void FormatUsageAuthority::AllowSizedTexFormat(GLenum sizedFormat,
|
||||
void FormatUsageAuthority::AllowUnsizedTexFormat(const PackingInfo& pi,
|
||||
const FormatUsageInfo* usage) {
|
||||
MOZ_ASSERT(!usage->format->compression);
|
||||
MOZ_ASSERT(usage->validUnpacks.size() && usage->idealUnpack,
|
||||
MOZ_ASSERT(!usage->validUnpacks.empty() && usage->idealUnpack,
|
||||
"AddTexUnpack() first.");
|
||||
|
||||
AlwaysInsert(mUnsizedTexFormatMap, pi, usage);
|
||||
|
Loading…
x
Reference in New Issue
Block a user