Index: gpu/command_buffer/service/test_helper.cc |
diff --git a/gpu/command_buffer/service/test_helper.cc b/gpu/command_buffer/service/test_helper.cc |
index dc4e3ac59f7a4e2d4cea75c758988503e3134166..bbd3582ecee609e7831f26ea7dfb3905289f75bf 100644 |
--- a/gpu/command_buffer/service/test_helper.cc |
+++ b/gpu/command_buffer/service/test_helper.cc |
@@ -637,8 +637,8 @@ void TestHelper::SetupFeatureInfoInitExpectationsWithGLVersion( |
.Times(1) |
.RetiresOnSaturation(); |
} |
- |
- if (!enable_es3 && !strstr(extensions, "GL_EXT_color_buffer_half_float")) { |
+ if (!enable_es3 && !strstr(extensions, "GL_EXT_color_buffer_half_float") && |
+ gl_info.IsAtLeastGL(3, 0)) { |
EXPECT_CALL( |
*gl, |
TexImage2D(GL_TEXTURE_2D, 0, GL_R16F, width, width, 0, GL_RED, _, _)) |