Update fountain and add writable flag to script slots.
diff --git a/rsScript.cpp b/rsScript.cpp
index 75c994b..6bcb8f2 100644
--- a/rsScript.cpp
+++ b/rsScript.cpp
@@ -76,11 +76,12 @@
     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 {