Skip to content

Commit 3260eac

Browse files
committed
Kept getting a error message form core "WARNING: EglCore was not explicitly released -- state may be leaked", So I modified logic to release it if we have already created EglCore object and are creating a new one
1 parent c67fd74 commit 3260eac

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,9 @@ public void shutDown() {
262262
* @param Height
263263
*/
264264
private void setupGLES(int Width, int Height) {
265+
if (mEglCore != null) {
266+
mEglCore.release();
267+
}
265268
mEglCore = new EglCore(null, 0);
266269

267270
// This 1x1 offscreen is created just to get the texture name (mTextureId).

0 commit comments

Comments
 (0)