commit | 9f0d108667b49663de488859e7254796ea37e323 | [log] [tgz] |
---|---|---|
author | Adam Barth <github@adambarth.com> | Mon Aug 17 16:45:43 2015 -0700 |
committer | Adam Barth <github@adambarth.com> | Mon Aug 17 16:45:43 2015 -0700 |
tree | daf14e8a4665f788eda017d9b6f10e8fba1c8059 | |
parent | d9ef04d3f7b06301314f64fab475ab52aa404dc5 [diff] | |
parent | 33994d06f779d385948ecebbc2c6455910b8b444 [diff] |
Merge pull request #663 from abarth/fix_rotate Don't corrupt drawing when rotating
diff --git a/sky/shell/gpu/rasterizer.cc b/sky/shell/gpu/rasterizer.cc index 4e84111..dc4530c 100644 --- a/sky/shell/gpu/rasterizer.cc +++ b/sky/shell/gpu/rasterizer.cc
@@ -53,6 +53,9 @@ if (size.IsEmpty()) return; + if (surface_->GetSize() != size) + surface_->Resize(size); + EnsureGLContext(); CHECK(context_->MakeCurrent(surface_.get())); EnsureGaneshSurface(surface_->GetBackingFrameBufferObject(), size);