RS Error cleanup.
Thow java exception during init if the GL driver fails rather than native crash. Change-Id: Ie96ef5a2ac12e64f9456545d86157c4c95179a8e
This commit is contained in:
@@ -128,6 +128,9 @@ public class RenderScriptGL extends RenderScript {
|
||||
mSurfaceConfig.mStencilMin, mSurfaceConfig.mStencilPref,
|
||||
mSurfaceConfig.mSamplesMin, mSurfaceConfig.mSamplesPref,
|
||||
mSurfaceConfig.mSamplesQ);
|
||||
if (mContext == 0) {
|
||||
throw new RSDriverException("Failed to create RS context.");
|
||||
}
|
||||
mMessageThread = new MessageThread(this);
|
||||
mMessageThread.start();
|
||||
Element.initPredefined(this);
|
||||
|
||||
Reference in New Issue
Block a user