Skip to content

Commit eea49e9

Browse files
committed
Add mEglCore release and set it to null in shutdown of VDE. And revert change in Texture2dProgram
1 parent eabf5cc commit eea49e9

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

android/sdl_android/src/main/java/com/android/grafika/gles/Texture2dProgram.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public Texture2dProgram(ProgramType programType) {
162162
if (mProgramHandle == 0) {
163163
throw new RuntimeException("Unable to create program");
164164
}
165-
Log.i(TAG,"Created program " + mProgramHandle + " (" + programType + ")");
165+
Log.e(TAG,"Created program " + mProgramHandle + " (" + programType + ")");
166166

167167
// get locations of attributes and uniforms
168168

android/sdl_android/src/main/java/com/smartdevicelink/encoder/VirtualDisplayEncoder.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,10 @@ public void shutDown() {
251251
inputSurface.release();
252252
inputSurface = null;
253253
}
254+
if (mEglCore != null) {
255+
mEglCore.release();
256+
mEglCore = null;
257+
}
254258
} catch (Exception ex) {
255259
DebugTool.logError(TAG, "shutDown() failed");
256260
}

0 commit comments

Comments
 (0)