Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(414)

Unified Diff: gpu/command_buffer/service/test_helper.cc

Issue 2863773002: Don't expose EXT_color_buffer_half_float to GL 2.x (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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, _, _))
« gpu/command_buffer/service/feature_info.cc ('K') | « gpu/command_buffer/service/feature_info.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698