diff options
| author | Alex Sakhartchouk <alexst@google.com> | 2010-10-01 10:54:06 -0700 |
|---|---|---|
| committer | Alex Sakhartchouk <alexst@google.com> | 2010-10-01 14:11:52 -0700 |
| commit | 889fe50e7aaebed8cb8284b16a0e51e64e8a3a9c (patch) | |
| tree | fb26af2fcdfcd6e2c96963d840e0251c33c70095 /rsProgramVertex.cpp | |
| parent | 9fbc73ad7d5e33e340145d6c792591409cb1a71c (diff) | |
| download | android_frameworks_rs-889fe50e7aaebed8cb8284b16a0e51e64e8a3a9c.tar.gz android_frameworks_rs-889fe50e7aaebed8cb8284b16a0e51e64e8a3a9c.tar.bz2 android_frameworks_rs-889fe50e7aaebed8cb8284b16a0e51e64e8a3a9c.zip | |
fixing bugs 3053960, 3044804, 3044798
shader cleanup and removing unnecessary state setup.
Change-Id: Ibddf2ad3a26bb983fc43bdeb58b1cec6224920b4
Diffstat (limited to 'rsProgramVertex.cpp')
| -rw-r--r-- | rsProgramVertex.cpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/rsProgramVertex.cpp b/rsProgramVertex.cpp index bd129895..d3dbfb22 100644 --- a/rsProgramVertex.cpp +++ b/rsProgramVertex.cpp @@ -45,15 +45,9 @@ ProgramVertex::ProgramVertex(Context *rsc, const char * shaderText, ProgramVertex::~ProgramVertex() { -} - -static void logMatrix(const char *txt, const float *f) -{ - LOGV("Matrix %s, %p", txt, f); - LOGV("%6.4f, %6.4f, %6.4f, %6.4f", f[0], f[4], f[8], f[12]); - LOGV("%6.4f, %6.4f, %6.4f, %6.4f", f[1], f[5], f[9], f[13]); - LOGV("%6.4f, %6.4f, %6.4f, %6.4f", f[2], f[6], f[10], f[14]); - LOGV("%6.4f, %6.4f, %6.4f, %6.4f", f[3], f[7], f[11], f[15]); + if(mShaderID) { + mRSC->mShaderCache.cleanupVertex(mShaderID); + } } void ProgramVertex::loadShader(Context *rsc) { |
