| Index: mojo/examples/aura_demo/demo_context_factory.cc
|
| diff --git a/mojo/examples/aura_demo/demo_context_factory.cc b/mojo/examples/aura_demo/demo_context_factory.cc
|
| index 065221733a4b99c06b50389d419c4faebc49f9fd..19af8e50b77971bf3e70be6787e35ead23f7aef7 100644
|
| --- a/mojo/examples/aura_demo/demo_context_factory.cc
|
| +++ b/mojo/examples/aura_demo/demo_context_factory.cc
|
| @@ -24,11 +24,16 @@ DemoContextFactory::~DemoContextFactory() {
|
| }
|
|
|
| bool DemoContextFactory::Initialize() {
|
| + if (gfx::GetGLImplementation() != gfx::kGLImplementationNone) {
|
| + return true;
|
| + }
|
| +
|
| if (!gfx::GLSurface::InitializeOneOff() ||
|
| gfx::GetGLImplementation() == gfx::kGLImplementationNone) {
|
| LOG(ERROR) << "Could not load the GL bindings";
|
| return false;
|
| }
|
| +
|
| return true;
|
| }
|
|
|
| @@ -70,4 +75,3 @@ bool DemoContextFactory::DoesCreateTestContexts() { return false; }
|
|
|
| } // namespace examples
|
| } // namespace mojo
|
| -
|
|
|