Fix 2877497: export rsgProgramVertexLoadProjectionMatrix()
This updates renderscript to allow loading of the projection
matrix.
Change-Id: I9af03e06ce6b5432ffbf3db8f6cda7b29aa21c7f
diff --git a/libs/rs/rsScriptC_LibGL.cpp b/libs/rs/rsScriptC_LibGL.cpp
index e9971a2..bed0fce 100644
--- a/libs/rs/rsScriptC_LibGL.cpp
+++ b/libs/rs/rsScriptC_LibGL.cpp
@@ -91,6 +91,12 @@
// VP
//////////////////////////////////////////////////////////////////////////////
+static void SC_vpLoadProjectionMatrix(const rsc_Matrix *m)
+{
+ GET_TLS();
+ rsc->getVertex()->setProjectionMatrix(m);
+}
+
static void SC_vpLoadModelMatrix(const rsc_Matrix *m)
{
GET_TLS();
@@ -355,6 +361,7 @@
{ "rsgBindSampler", (void *)&SC_bindSampler },
{ "rsgBindTexture", (void *)&SC_bindTexture },
+ { "rsgProgramVertexLoadProjectionMatrix", (void *)&SC_vpLoadProjectionMatrix },
{ "rsgProgramVertexLoadModelMatrix", (void *)&SC_vpLoadModelMatrix },
{ "rsgProgramVertexLoadTextureMatrix", (void *)&SC_vpLoadTextureMatrix },