summaryrefslogtreecommitdiffstats
path: root/opengl/libagl
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2009-08-10 13:02:28 +0200
committerMartin Storsjo <martin@martin.st>2009-08-10 13:03:59 +0200
commit924cba8056a64b467e2719c302f4c3dc0920460d (patch)
treedc9dabbaf2dc9165043ead16e7cb87de46de7a90 /opengl/libagl
parente0c54121b0036117079e5e2b28a913a34d5053ab (diff)
downloadframeworks_native-924cba8056a64b467e2719c302f4c3dc0920460d.zip
frameworks_native-924cba8056a64b467e2719c302f4c3dc0920460d.tar.gz
frameworks_native-924cba8056a64b467e2719c302f4c3dc0920460d.tar.bz2
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;
}
// ----------------------------------------------------------------------------