Merge "Fix RenderScriptGL setSurfaceTexture problem"

This commit is contained in:
Jason Sams
2014-03-31 23:21:42 +00:00
committed by Gerrit Code Review

View File

@ -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);
}
/**