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..94656bfc9e296da01a811bd3d3de4a2baccb22fa 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.is_es || gl_info.IsAtLeastGL(3, 0))) { |
EXPECT_CALL( |
*gl, |
TexImage2D(GL_TEXTURE_2D, 0, GL_R16F, width, width, 0, GL_RED, _, _)) |