summaryrefslogtreecommitdiffstats
path: root/mojo/apps/js/main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'mojo/apps/js/main.cc')
-rw-r--r--mojo/apps/js/main.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/mojo/apps/js/main.cc b/mojo/apps/js/main.cc
index 12ec34e..3ecca28 100644
--- a/mojo/apps/js/main.cc
+++ b/mojo/apps/js/main.cc
@@ -6,6 +6,7 @@
#include "gin/public/isolate_holder.h"
#include "mojo/apps/js/mojo_runner_delegate.h"
#include "mojo/common/bindings_support_impl.h"
+#include "mojo/public/gles2/gles2.h"
#include "mojo/public/system/core_cpp.h"
#include "mojo/public/system/macros.h"
@@ -39,9 +40,11 @@ void Start(MojoHandle pipe, const std::string& module) {
extern "C" MOJO_APPS_JS_EXPORT MojoResult CDECL MojoMain(MojoHandle pipe) {
mojo::common::BindingsSupportImpl bindings_support;
mojo::BindingsSupport::Set(&bindings_support);
+ MojoGLES2Initialize();
mojo::apps::Start(pipe, "mojo/apps/js/main");
+ MojoGLES2Terminate();
mojo::BindingsSupport::Set(NULL);
return MOJO_RESULT_OK;
}