Commit 4c667a42 authored by Kristian H. Kristensen's avatar Kristian H. Kristensen Committed by Commit Bot

gpu: Mark textures immutable for TexStorage2DImageCHROMIUM

TexStorage2DImageCHROMIUM should create an immutable texture like the
TexStorage function it's modelled after.

Change-Id: I8cde40d64df307d863974401c8eeaff69d5b56ae
Reviewed-on: https://chromium-review.googlesource.com/847966Reviewed-by: default avatarAntoine Labour <piman@chromium.org>
Commit-Queue: Kristian H. Kristensen <hoegsberg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#526842}
parent 27cff7f4
...@@ -18112,6 +18112,8 @@ void GLES2DecoderImpl::DoTexStorage2DImageCHROMIUM(GLenum target, ...@@ -18112,6 +18112,8 @@ void GLES2DecoderImpl::DoTexStorage2DImageCHROMIUM(GLenum target,
if (texture->IsAttachedToFramebuffer()) if (texture->IsAttachedToFramebuffer())
framebuffer_state_.clear_state_dirty = true; framebuffer_state_.clear_state_dirty = true;
texture->SetImmutable(true);
} }
void GLES2DecoderImpl::DoProduceTextureDirectCHROMIUM( void GLES2DecoderImpl::DoProduceTextureDirectCHROMIUM(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment