summaryrefslogtreecommitdiffstats
path: root/rs/java
diff options
context:
space:
mode:
authorJason Sams <jsams@google.com>2014-04-01 00:15:26 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-04-01 00:15:26 +0000
commitc796ccaafb935592b98d5aaad2594791935f6530 (patch)
tree16ffc01253fecd64e8586e66028462173d019ba7 /rs/java
parent7471a3b1ea3b722168ed3e932d4015750c913c0b (diff)
parent095ece10095ecb8c76e3ed4fb0dd1e23a5ced22b (diff)
downloadframeworks_base-c796ccaafb935592b98d5aaad2594791935f6530.zip
frameworks_base-c796ccaafb935592b98d5aaad2594791935f6530.tar.gz
frameworks_base-c796ccaafb935592b98d5aaad2594791935f6530.tar.bz2
am 095ece10: am b3cafa56: Merge "Fix RenderScriptGL setSurfaceTexture problem"
* commit '095ece10095ecb8c76e3ed4fb0dd1e23a5ced22b': Fix RenderScriptGL setSurfaceTexture problem
Diffstat (limited to 'rs/java')
-rw-r--r--rs/java/android/renderscript/RenderScriptGL.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/rs/java/android/renderscript/RenderScriptGL.java b/rs/java/android/renderscript/RenderScriptGL.java
index c9cbe3e..d6841c8 100644
--- a/rs/java/android/renderscript/RenderScriptGL.java
+++ b/rs/java/android/renderscript/RenderScriptGL.java
@@ -232,9 +232,13 @@ public class RenderScriptGL extends RenderScript {
validate();
//android.util.Log.v("rs", "set surface " + sur + " w=" + w + ", h=" + h);
+ Surface s = null;
+ if (sur != null) {
+ s = new Surface(sur);
+ }
mWidth = w;
mHeight = h;
- nContextSetSurfaceTexture(w, h, sur);
+ nContextSetSurface(w, h, s);
}
/**