summaryrefslogtreecommitdiffstats
path: root/opengl/libagl
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
commit7e05c0e8868fc2f1baa187da16654b7e6bcd2de2 (patch)
tree6976156737cd1639f489b00396f9582af8f0ca08 /opengl/libagl
parentcdda8cd6c2a4fe30d51fa72adeaa8dbeb595ba59 (diff)
parent924cba8056a64b467e2719c302f4c3dc0920460d (diff)
downloadframeworks_native-7e05c0e8868fc2f1baa187da16654b7e6bcd2de2.zip
frameworks_native-7e05c0e8868fc2f1baa187da16654b7e6bcd2de2.tar.gz
frameworks_native-7e05c0e8868fc2f1baa187da16654b7e6bcd2de2.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/libagl')
-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;
}
// ----------------------------------------------------------------------------