Index: ui/views/examples/examples_main.cc |
diff --git a/ui/views/examples/examples_main.cc b/ui/views/examples/examples_main.cc |
index 62a64055bf7c5eb25518c8b52d2debe356452482..53a206ffc24c5a46318c80a0a9c9901eb6d2c125 100644 |
--- a/ui/views/examples/examples_main.cc |
+++ b/ui/views/examples/examples_main.cc |
@@ -14,6 +14,7 @@ |
#include "ui/base/resource/resource_bundle.h" |
#include "ui/compositor/test/context_factories_for_test.h" |
#include "ui/gfx/screen.h" |
+#include "ui/gl/gl_surface.h" |
#include "ui/views/corewm/wm_state.h" |
#include "ui/views/examples/example_base.h" |
#include "ui/views/examples/examples_window.h" |
@@ -46,6 +47,8 @@ int main(int argc, char** argv) { |
ui::ResourceBundle::InitSharedInstanceWithPakPath(pak_file); |
+ gfx::GLSurface::InitializeOneOff(); |
+ |
// The ContextFactory must exist before any Compositors are created. |
bool allow_test_contexts = false; |
ui::InitializeContextFactoryForTests(allow_test_contexts); |