summaryrefslogtreecommitdiffstats
path: root/opengl
diff options
context:
space:
mode:
authorAndroid Code Review <code-review@android.com>2009-08-25 14:37:28 -0700
committerAndroid Code Review <code-review@android.com>2009-08-25 14:37:28 -0700
commit46ba1c964f10fc9bd604134e5b20483daa0c86a9 (patch)
tree3fe5e57876c0ce30367656c094728893e9616619 /opengl
parent595e1ec4a394ce589eb70d70a86efc4ac298cfe7 (diff)
parent1ac3b5ff60def97b66d38ab5aa3e22efd17711c0 (diff)
downloadframeworks_base-46ba1c964f10fc9bd604134e5b20483daa0c86a9.zip
frameworks_base-46ba1c964f10fc9bd604134e5b20483daa0c86a9.tar.gz
frameworks_base-46ba1c964f10fc9bd604134e5b20483daa0c86a9.tar.bz2
Merge change 11093
* changes: 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.cpp2
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;
}
// ----------------------------------------------------------------------------