diff options
author | 2009-08-10 13:02:28 +0200 | |
---|---|---|
committer | 2009-08-25 18:35:03 -0700 | |
commit | d914215edf600f811f7ad8cad2eab9049cf859a4 (patch) | |
tree | b2f3402f495c89f423ddf596c01551cd0c005085 | |
parent | 7a261bb219091cfedb890d9f841df52badf8dcc7 (diff) |
If FLAGS_2D_PROJECTION is set, the MVP matrices need updating when changing the viewport.
-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 0b68dc06f5..21ef50e6b6 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; } // ---------------------------------------------------------------------------- |