diff --git a/samples/RenderScript/HelloCompute/src/com/example/android/rs/hellocompute/HelloCompute.java b/samples/RenderScript/HelloCompute/src/com/example/android/rs/hellocompute/HelloCompute.java index 165682135..643df9b2a 100644 --- a/samples/RenderScript/HelloCompute/src/com/example/android/rs/hellocompute/HelloCompute.java +++ b/samples/RenderScript/HelloCompute/src/com/example/android/rs/hellocompute/HelloCompute.java @@ -62,7 +62,7 @@ public class HelloCompute extends Activity { Allocation.MipmapControl.MIPMAP_NONE, Allocation.USAGE_SCRIPT); - mScript = new ScriptC_mono(mRS, getResources(), R.raw.mono); + mScript = new ScriptC_mono(mRS); mScript.forEach_root(mInAllocation, mOutAllocation); mOutAllocation.copyTo(mBitmapOut); diff --git a/samples/RenderScript/Levels/src/com/android/rs/levels/LevelsRSActivity.java b/samples/RenderScript/Levels/src/com/android/rs/levels/LevelsRSActivity.java index f8bba2ebe..647196085 100644 --- a/samples/RenderScript/Levels/src/com/android/rs/levels/LevelsRSActivity.java +++ b/samples/RenderScript/Levels/src/com/android/rs/levels/LevelsRSActivity.java @@ -176,7 +176,7 @@ public class LevelsRSActivity extends Activity Allocation.USAGE_IO_OUTPUT); mDisplayView.setSurfaceTextureListener(this); - mScript = new ScriptC_levels(mRS, getResources(), R.raw.levels); + mScript = new ScriptC_levels(mRS); mScript.set_gamma(mGamma); setSaturation();