Index: ppapi/examples/gles2/gles2.cc |
diff --git a/ppapi/examples/gles2/gles2.cc b/ppapi/examples/gles2/gles2.cc |
index 9fd6b58d9fb66fb405c12d43f7a470e7f0997434..7a2ca050d98c3a0af248c597d7701edaf78bceba 100644 |
--- a/ppapi/examples/gles2/gles2.cc |
+++ b/ppapi/examples/gles2/gles2.cc |
@@ -85,11 +85,12 @@ class GLES2DemoInstance : public pp::Instance, |
GLES2DemoInstance::GLES2DemoInstance(PP_Instance instance, pp::Module* module) |
: pp::Instance(instance), pp::Graphics3DClient(this), |
callback_factory_(this), |
+ gles2_if_(static_cast<const PPB_OpenGLES2*>( |
+ module->GetBrowserInterface(PPB_OPENGLES2_INTERFACE))), |
module_(module), |
context_(NULL), |
fullscreen_(false) { |
- assert((gles2_if_ = static_cast<const PPB_OpenGLES2*>( |
- module->GetBrowserInterface(PPB_OPENGLES2_INTERFACE)))); |
+ assert(gles2_if_); |
RequestInputEvents(PP_INPUTEVENT_CLASS_MOUSE); |
} |