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/rsScriptC.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libs/rs/rsScriptC.cpp') diff --git a/libs/rs/rsScriptC.cpp b/libs/rs/rsScriptC.cpp index ced251632886..db4fd09d9faf 100644 --- a/libs/rs/rsScriptC.cpp +++ b/libs/rs/rsScriptC.cpp @@ -93,6 +93,7 @@ void ScriptCState::clear() for (uint32_t ct=0; ct < MAX_SCRIPT_BANKS; ct++) { mConstantBufferTypes[ct].clear(); mSlotNames[ct].setTo(""); + mSlotWritable[ct] = false; } memset(&mEnviroment, 0, sizeof(mEnviroment)); @@ -341,6 +342,7 @@ RsScript rsi_ScriptCCreate(Context * rsc) for (int ct=0; ct < MAX_SCRIPT_BANKS; ct++) { s->mTypes[ct].set(ss->mConstantBufferTypes[ct].get()); s->mSlotNames[ct] = ss->mSlotNames[ct]; + s->mSlotWritable[ct] = ss->mSlotWritable[ct]; } ss->clear(); -- cgit v1.2.3-59-g8ed1b