Chromium Code Reviews| Index: examples/sample_app/spinning_cube.cc |
| diff --git a/examples/sample_app/spinning_cube.cc b/examples/sample_app/spinning_cube.cc |
| index ae7ef970d67fcb1ddcef8e5f1d54779c58645135..86af6f3cd778ace52bf4290e8d4c4e67e8f7ec4a 100644 |
| --- a/examples/sample_app/spinning_cube.cc |
| +++ b/examples/sample_app/spinning_cube.cc |
| @@ -439,10 +439,7 @@ SpinningCube::~SpinningCube() { |
| glDeleteProgram(state_->program_object_); |
| } |
| -void SpinningCube::Init(uint32_t width, uint32_t height) { |
| - width_ = width; |
| - height_ = height; |
| - |
| +void SpinningCube::Init() { |
| const char vertex_shader_source[] = |
| "uniform mat4 u_mvpMatrix; \n" |
| "attribute vec4 a_position; \n" |
| @@ -486,8 +483,6 @@ void SpinningCube::Init(uint32_t width, uint32_t height) { |
| void SpinningCube::OnGLContextLost() { |
|
qsr
2015/02/23 12:32:52
If I recall correctly, we never sent this. If you
jamesr
2015/03/04 00:19:51
Oh, good catch. Added a call in GLES2ClientImpl::
|
| initialized_ = false; |
| - height_ = 0; |
| - width_ = 0; |
| state_->OnGLContextLost(); |
| } |