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 31f6a8b5731d205700703d22fbae56370061b686..e53f1ee1d563813bf815814b6510812427d8b932 100644 |
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc |
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc |
@@ -4695,8 +4695,8 @@ void GLES2DecoderImpl::DoUniform1iv( |
fake_location, "glUniform1iv", &real_location, &type, &count)) { |
return; |
} |
- if (type == GL_SAMPLER_2D || type == GL_SAMPLER_CUBE || |
- type == GL_SAMPLER_EXTERNAL_OES) { |
+ if (type == GL_SAMPLER_2D || type == GL_SAMPLER_2D_RECT_ARB || |
+ type == GL_SAMPLER_CUBE || type == GL_SAMPLER_EXTERNAL_OES) { |
if (!current_program_->SetSamplers( |
group_->max_texture_units(), fake_location, count, value)) { |
SetGLError(GL_INVALID_VALUE, "glUniform1iv", "texture unit out of range"); |