Avoid destroying Device separately
Bug: 27983025 Device should be destroyed inside the destructor of the associated Context. Change-Id: I921a89974e1174f837349a89aef9b03efa4882f5
This commit is contained in:
@@ -177,9 +177,9 @@ public class RenderScriptGL extends RenderScript {
|
||||
|
||||
mWidth = 0;
|
||||
mHeight = 0;
|
||||
mDev = nDeviceCreate();
|
||||
long device = nDeviceCreate();
|
||||
int dpi = ctx.getResources().getDisplayMetrics().densityDpi;
|
||||
mContext = nContextCreateGL(mDev, 0, sdkVersion,
|
||||
mContext = nContextCreateGL(device, 0, sdkVersion,
|
||||
mSurfaceConfig.mColorMin, mSurfaceConfig.mColorPref,
|
||||
mSurfaceConfig.mAlphaMin, mSurfaceConfig.mAlphaPref,
|
||||
mSurfaceConfig.mDepthMin, mSurfaceConfig.mDepthPref,
|
||||
|
||||
Reference in New Issue
Block a user