diff options
author | Martin Storsjo <martin@martin.st> | 2009-08-10 13:02:28 +0200 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2009-08-25 18:35:03 -0700 |
commit | 4f31af9346b818c8ef05a63e15e9170a7c6131e4 (patch) | |
tree | fe27bc0741432288cdcf1dafd6ebc41227278cab /opengl | |
parent | 16c758fb156cc8184e9c3ace7aa4717af4bb05ea (diff) | |
download | frameworks_base-4f31af9346b818c8ef05a63e15e9170a7c6131e4.zip frameworks_base-4f31af9346b818c8ef05a63e15e9170a7c6131e4.tar.gz frameworks_base-4f31af9346b818c8ef05a63e15e9170a7c6131e4.tar.bz2 |
If FLAGS_2D_PROJECTION is set, the MVP matrices need updating when changing the viewport.
Diffstat (limited to 'opengl')
-rw-r--r-- | opengl/libagl/matrix.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/opengl/libagl/matrix.cpp b/opengl/libagl/matrix.cpp index 0b68dc0..21ef50e 100644 --- a/opengl/libagl/matrix.cpp +++ b/opengl/libagl/matrix.cpp @@ -696,6 +696,8 @@ void ogles_viewport(ogles_context_t* c, f[2] = 0; f[6] = 0; f[10] = A; f[14] = B; f[3] = 0; f[7] = 0; f[11] = 0; f[15] = 1; c->transforms.dirty |= transform_state_t::VIEWPORT; + if (c->transforms.mvp4.flags & transform_t::FLAGS_2D_PROJECTION) + c->transforms.dirty |= transform_state_t::MVP; } // ---------------------------------------------------------------------------- |