diff options
Diffstat (limited to 'libs/rs/rsProgramVertex.cpp')
| -rw-r--r-- | libs/rs/rsProgramVertex.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libs/rs/rsProgramVertex.cpp b/libs/rs/rsProgramVertex.cpp index a80e2f7ec309..fc26ab50ee91 100644 --- a/libs/rs/rsProgramVertex.cpp +++ b/libs/rs/rsProgramVertex.cpp @@ -47,7 +47,7 @@ void ProgramVertex::setupGL() glMatrixMode(GL_PROJECTION); if (mProjectionEnable) { - //glLoadMatrixf(&f[OFFSET_PROJECTION]); + glLoadMatrixf(&f[RS_PROGRAM_VERTEX_PROJECTION_OFFSET]); } else { } @@ -57,7 +57,6 @@ void ProgramVertex::setupGL() } else { glLoadIdentity(); } - } void ProgramVertex::setConstantType(uint32_t slot, const Type *t) @@ -126,6 +125,11 @@ void rsi_ProgramVertexSetModelMatrixEnable(Context *rsc, bool enable) rsc->mStateVertex.mPV->setTransformEnable(enable); } +void rsi_ProgramVertexSetProjectionMatrixEnable(Context *rsc, bool enable) +{ + rsc->mStateVertex.mPV->setProjectionEnable(enable); +} + } |