diff options
| author | 2010-10-13 15:17:00 -0700 | |
|---|---|---|
| committer | 2010-10-13 17:24:41 -0700 | |
| commit | 99bcdc52dcb365ed7d8cfa13540fb33fbcbbac9d (patch) | |
| tree | 6aa73d73948d851ea9b61c36e74a275c4092f5ad /libs/hwui/OpenGLRenderer.cpp | |
| parent | bbf68c6ad2cc3dd338f93779d60c5821e730a263 (diff) | |
Return identity matrix when rendering in an FBO.
Change-Id: I57438e745b30c8cfe16c269f3cafcd719049d705
Diffstat (limited to 'libs/hwui/OpenGLRenderer.cpp')
| -rw-r--r-- | libs/hwui/OpenGLRenderer.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/hwui/OpenGLRenderer.cpp b/libs/hwui/OpenGLRenderer.cpp index 92875b18c22e..d81760d96c83 100644 --- a/libs/hwui/OpenGLRenderer.cpp +++ b/libs/hwui/OpenGLRenderer.cpp @@ -585,7 +585,10 @@ void OpenGLRenderer::setMatrix(SkMatrix* matrix) { } const float* OpenGLRenderer::getMatrix() const { - return &mSnapshot->transform->data[0]; + if (mSnapshot->fbo != 0) { + return &mSnapshot->transform->data[0]; + } + return &mIdentity.data[0]; } void OpenGLRenderer::getMatrix(SkMatrix* matrix) { |