| Index: gpu/demos/gles2_book/example.h
|
| ===================================================================
|
| --- gpu/demos/gles2_book/example.h (revision 94518)
|
| +++ gpu/demos/gles2_book/example.h (working copy)
|
| @@ -51,8 +51,6 @@
|
| // Note that update_func is optional.
|
| assert(init_func_ && draw_func_ && shut_down_func_);
|
|
|
| - context_.width = width();
|
| - context_.height = height();
|
| if (!init_func_(&context_)) return false;
|
| return true;
|
| }
|
| @@ -69,6 +67,9 @@
|
| }
|
|
|
| virtual void Render(float elapsed_sec) {
|
| + context_.width = width();
|
| + context_.height = height();
|
| +
|
| if (update_func_) update_func_(&context_, elapsed_sec);
|
| draw_func_(&context_);
|
| }
|
|
|