diff options
author | Jason Sams <rjsams@android.com> | 2012-02-24 17:51:24 -0800 |
---|---|---|
committer | Jason Sams <rjsams@android.com> | 2012-02-24 17:51:24 -0800 |
commit | 1a4e1f3efd077f3a61038aedab84dc84c9c44d19 (patch) | |
tree | 010388194a4dcfaebf9aee075baf2d220635da0f /graphics/java/android/renderscript/RenderScriptGL.java | |
parent | a6f338ca5f0c8359d1952167858851dd025e47e2 (diff) | |
download | frameworks_base-1a4e1f3efd077f3a61038aedab84dc84c9c44d19.zip frameworks_base-1a4e1f3efd077f3a61038aedab84dc84c9c44d19.tar.gz frameworks_base-1a4e1f3efd077f3a61038aedab84dc84c9c44d19.tar.bz2 |
Make compute work without an app context.
Change-Id: I644b4711135d6f5d9866b6c2e5e6f6a5ceb1f3d4
Diffstat (limited to 'graphics/java/android/renderscript/RenderScriptGL.java')
-rw-r--r-- | graphics/java/android/renderscript/RenderScriptGL.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/java/android/renderscript/RenderScriptGL.java b/graphics/java/android/renderscript/RenderScriptGL.java index 2cfeb17..1b2ac90 100644 --- a/graphics/java/android/renderscript/RenderScriptGL.java +++ b/graphics/java/android/renderscript/RenderScriptGL.java @@ -166,7 +166,7 @@ public class RenderScriptGL extends RenderScript { super(ctx); mSurfaceConfig = new SurfaceConfig(sc); - int sdkVersion = getTargetSdkVersion(ctx); + int sdkVersion = ctx.getApplicationInfo().targetSdkVersion; mWidth = 0; mHeight = 0; |