summaryrefslogtreecommitdiff
path: root/chromium/components/viz/common/gpu/texture_allocation.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/components/viz/common/gpu/texture_allocation.cc')
-rw-r--r--chromium/components/viz/common/gpu/texture_allocation.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chromium/components/viz/common/gpu/texture_allocation.cc b/chromium/components/viz/common/gpu/texture_allocation.cc
index 90b51e28e6a..1a33cdb36c7 100644
--- a/chromium/components/viz/common/gpu/texture_allocation.cc
+++ b/chromium/components/viz/common/gpu/texture_allocation.cc
@@ -97,7 +97,7 @@ void TextureAllocation::AllocateStorage(gpu::raster::RasterInterface* ri,
// ETC1 resources cannot be preallocated.
if (format == ETC1)
return;
- ri->TexStorage2D(alloc.texture_id, 1, size.width(), size.height());
+ ri->TexStorage2D(alloc.texture_id, size.width(), size.height());
if (alloc.overlay_candidate && color_space.IsValid()) {
ri->SetColorSpaceMetadata(alloc.texture_id,
reinterpret_cast<GLColorSpace>(