diff options
author | Jason Sams <rjsams@android.com> | 2009-08-17 13:56:09 -0700 |
---|---|---|
committer | Jason Sams <rjsams@android.com> | 2009-08-17 13:56:09 -0700 |
commit | 334ea0c98f051b5a6b85bc616c93304651854298 (patch) | |
tree | b3d87acd4f6285446fdc166d0ec9bb5330f42c21 /libs/rs/rsScript.cpp | |
parent | 0ef135d5c79ff5b443b43f8743250044700a8bb5 (diff) |
Update fountain and add writable flag to script slots.
Diffstat (limited to 'libs/rs/rsScript.cpp')
-rw-r--r-- | libs/rs/rsScript.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/rs/rsScript.cpp b/libs/rs/rsScript.cpp index 75c994b24fd0..6bcb8f23264a 100644 --- a/libs/rs/rsScript.cpp +++ b/libs/rs/rsScript.cpp @@ -76,11 +76,12 @@ void rsi_ScriptSetClearStencil(Context * rsc, RsScript vs, uint32_t v) s->mEnviroment.mClearStencil = v; } -void rsi_ScriptSetType(Context * rsc, RsType vt, uint32_t slot, const char *name) +void rsi_ScriptSetType(Context * rsc, RsType vt, uint32_t slot, bool writable, const char *name) { ScriptCState *ss = &rsc->mScriptC; const Type *t = static_cast<const Type *>(vt); ss->mConstantBufferTypes[slot].set(t); + ss->mSlotWritable[slot] = writable; if (name) { ss->mSlotNames[slot].setTo(name); } else { |