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 3895c9f7b023467215c13843320cba7d1079154e..a4b4a5019b2e82741605890d849b462eaebe9cff 100644 |
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc |
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc |
@@ -16329,13 +16329,12 @@ error::Error GLES2DecoderImpl::HandleGetInternalformativ( |
GLsizei num_values = 0; |
std::vector<GLint> samples; |
if (gl_version_info().IsLowerThanGL(4, 2)) { |
- if (!GLES2Util::IsIntegerFormat(format) && |
- !GLES2Util::IsFloatFormat(format)) { |
- // No multisampling for integer formats and float formats. |
+ if (!GLES2Util::IsIntegerFormat(format)) { |
+ // No multisampling for integer formats. |
GLint max_samples = renderbuffer_manager()->max_samples(); |
while (max_samples > 0) { |
samples.push_back(max_samples); |
- max_samples = max_samples >> 1; |
+ --max_samples; |
} |
} |
switch (pname) { |