Merge "Fix RenderScriptGL setSurfaceTexture problem"
This commit is contained in:
@ -232,9 +232,13 @@ public class RenderScriptGL extends RenderScript {
|
|||||||
validate();
|
validate();
|
||||||
//android.util.Log.v("rs", "set surface " + sur + " w=" + w + ", h=" + h);
|
//android.util.Log.v("rs", "set surface " + sur + " w=" + w + ", h=" + h);
|
||||||
|
|
||||||
|
Surface s = null;
|
||||||
|
if (sur != null) {
|
||||||
|
s = new Surface(sur);
|
||||||
|
}
|
||||||
mWidth = w;
|
mWidth = w;
|
||||||
mHeight = h;
|
mHeight = h;
|
||||||
nContextSetSurfaceTexture(w, h, sur);
|
nContextSetSurface(w, h, s);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user