summaryrefslogtreecommitdiffstats
path: root/rsProgramFragment.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rsProgramFragment.cpp')
-rw-r--r--rsProgramFragment.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/rsProgramFragment.cpp b/rsProgramFragment.cpp
index 0713fb37..22cd5d39 100644
--- a/rsProgramFragment.cpp
+++ b/rsProgramFragment.cpp
@@ -204,7 +204,7 @@ void ProgramFragmentState::init(Context *rsc) {
tmp[0] = RS_PROGRAM_PARAM_CONSTANT;
tmp[1] = (uint32_t)inputType;
- Allocation *constAlloc = new Allocation(rsc, inputType);
+ Allocation *constAlloc = new Allocation(rsc, inputType, RS_ALLOCATION_USAGE_SCRIPT | RS_ALLOCATION_USAGE_GRAPHICS_CONSTANTS);
ProgramFragment *pf = new ProgramFragment(rsc, shaderString.string(),
shaderString.length(), tmp, 2);
pf->bindAllocation(rsc, constAlloc, 0);