From 334ea0c98f051b5a6b85bc616c93304651854298 Mon Sep 17 00:00:00 2001 From: Jason Sams Date: Mon, 17 Aug 2009 13:56:09 -0700 Subject: Update fountain and add writable flag to script slots. --- libs/rs/rsScript.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libs/rs/rsScript.cpp') 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(vt); ss->mConstantBufferTypes[slot].set(t); + ss->mSlotWritable[slot] = writable; if (name) { ss->mSlotNames[slot].setTo(name); } else { -- cgit v1.2.3-59-g8ed1b