Index: gpu/command_buffer/service/gles2_cmd_decoder.cc |
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.cc b/gpu/command_buffer/service/gles2_cmd_decoder.cc |
index a22c2f9b83e6f863d1d0e213dba7c857b685e56f..3979f58c03eea81d8214af4bc0f1d46eac87fdf0 100644 |
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc |
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc |
@@ -12459,8 +12459,9 @@ void GLES2DecoderImpl::DoBindTexImage2DCHROMIUM( |
gfx::Size size = gl_image->GetSize(); |
texture_manager()->SetLevelInfo( |
- texture_ref, target, 0, GL_RGBA, size.width(), size.height(), 1, 0, |
- GL_RGBA, GL_UNSIGNED_BYTE, true); |
+ texture_ref, target, 0, gl_image->GetInternalFormat(), |
+ size.width(), size.height(), 1, 0, |
+ gl_image->GetInternalFormat(), GL_UNSIGNED_BYTE, true); |
texture_manager()->SetLevelImage(texture_ref, target, 0, gl_image); |
} |
@@ -12498,8 +12499,8 @@ void GLES2DecoderImpl::DoReleaseTexImage2DCHROMIUM( |
} |
texture_manager()->SetLevelInfo( |
- texture_ref, target, 0, GL_RGBA, 0, 0, 1, 0, |
- GL_RGBA, GL_UNSIGNED_BYTE, false); |
+ texture_ref, target, 0, gl_image->GetInternalFormat(), 0, 0, 1, 0, |
+ gl_image->GetInternalFormat(), GL_UNSIGNED_BYTE, false); |
} |
error::Error GLES2DecoderImpl::HandleTraceBeginCHROMIUM( |