Index: gpu/command_buffer/tests/gl_tests_main.cc |
diff --git a/gpu/command_buffer/tests/gl_tests_main.cc b/gpu/command_buffer/tests/gl_tests_main.cc |
index 60b2e7ad4eff73a9a1a6e17f53dbab8a72300b67..326ef5ef78f02534030e592d74a99029de23ad44 100644 |
--- a/gpu/command_buffer/tests/gl_tests_main.cc |
+++ b/gpu/command_buffer/tests/gl_tests_main.cc |
@@ -5,6 +5,7 @@ |
#include "base/at_exit.h" |
#include "base/command_line.h" |
#include "base/message_loop.h" |
+#include "gpu/command_buffer/client/gles2_lib.h" |
#include "testing/gmock/include/gmock/gmock.h" |
#include "testing/gtest/include/gtest/gtest.h" |
#include "ui/gfx/gl/gl_surface.h" |
@@ -20,6 +21,7 @@ int main(int argc, char** argv) { |
gfx::GtkInitFromCommandLine(*CommandLine::ForCurrentProcess()); |
#endif |
gfx::GLSurface::InitializeOneOff(); |
+ ::gles2::Initialize(); |
MessageLoop::Type message_loop_type = MessageLoop::TYPE_UI; |
MessageLoop main_message_loop(message_loop_type); |
testing::InitGoogleMock(&argc, argv); |