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 fd5ef79921bb1a7c6ab64ea7461de08394dd6633..ab4105f3c7761ced0aae854214c061116a73cbc0 100644 |
--- a/gpu/command_buffer/service/test_helper.cc |
+++ b/gpu/command_buffer/service/test_helper.cc |
@@ -365,8 +365,9 @@ |
.RetiresOnSaturation(); |
} |
- if (enable_es3 || strstr(extensions, "GL_ARB_draw_buffers") || |
- strstr(extensions, "GL_EXT_draw_buffers") || gl_info.is_es3 || |
+ if (strstr(extensions, "GL_EXT_draw_buffers") || |
+ strstr(extensions, "GL_ARB_draw_buffers") || |
+ (gl_info.is_es3 && strstr(extensions, "GL_NV_draw_buffers")) || |
gl_info.is_desktop_core_profile) { |
EXPECT_CALL(*gl, GetIntegerv(GL_MAX_COLOR_ATTACHMENTS_EXT, _)) |
.WillOnce(SetArgumentPointee<1>(8)) |
@@ -655,8 +656,9 @@ |
#endif |
} |
- if (enable_es3 || strstr(extensions, "GL_ARB_draw_buffers") || |
- strstr(extensions, "GL_EXT_draw_buffers") || gl_info.is_es3 || |
+ if (strstr(extensions, "GL_EXT_draw_buffers") || |
+ strstr(extensions, "GL_ARB_draw_buffers") || |
+ (gl_info.is_es3 && strstr(extensions, "GL_NV_draw_buffers")) || |
gl_info.is_desktop_core_profile) { |
EXPECT_CALL(*gl, GetIntegerv(GL_MAX_COLOR_ATTACHMENTS_EXT, _)) |
.WillOnce(SetArgumentPointee<1>(8)) |