summaryrefslogtreecommitdiffstats
path: root/ui/aura/demo/demo_main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ui/aura/demo/demo_main.cc')
-rw-r--r--ui/aura/demo/demo_main.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/aura/demo/demo_main.cc b/ui/aura/demo/demo_main.cc
index 3dcd7db..7739ed5 100644
--- a/ui/aura/demo/demo_main.cc
+++ b/ui/aura/demo/demo_main.cc
@@ -21,6 +21,7 @@
#include "ui/events/event.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/rect.h"
+#include "ui/gl/gl_surface.h"
#if defined(USE_X11)
#include "base/message_loop/message_pump_x11.h"
@@ -108,6 +109,8 @@ int DemoMain() {
// Create the message-loop here before creating the root window.
base::MessageLoopForUI message_loop;
+ gfx::GLSurface::InitializeOneOff();
+
// The ContextFactory must exist before any Compositors are created.
bool allow_test_contexts = false;
ui::InitializeContextFactoryForTests(allow_test_contexts);