summaryrefslogtreecommitdiff
path: root/gpu_tonemapper
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2017-01-10 18:10:06 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2017-01-10 18:10:06 -0800
commiteb5c32bed2b2a73c4b68efd3ad18ed9a76a2aeb1 (patch)
treed5d50670d9f3d5630002346a47bb57a5c4d838cb /gpu_tonemapper
parente146c81a4d00ee36740878dc96268909972c7d8f (diff)
parentdbb86f2da6f9fcc126e5be160722a38014347319 (diff)
downloaddisplay-eb5c32bed2b2a73c4b68efd3ad18ed9a76a2aeb1.tar.gz
Merge "gpu_tonemapper: Free eglImage on termination"
Diffstat (limited to 'gpu_tonemapper')
-rw-r--r--gpu_tonemapper/EGLImageBuffer.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/gpu_tonemapper/EGLImageBuffer.cpp b/gpu_tonemapper/EGLImageBuffer.cpp
index e64e16fd..3ed236b1 100644
--- a/gpu_tonemapper/EGLImageBuffer.cpp
+++ b/gpu_tonemapper/EGLImageBuffer.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2016-2017, The Linux Foundation. All rights reserved.
* Not a Contribution.
*
* Copyright 2015 The Android Open Source Project
@@ -74,6 +74,13 @@ EGLImageBuffer::~EGLImageBuffer()
GL(glDeleteFramebuffers(1, &framebufferID));
framebufferID = 0;
}
+
+ // Delete the eglImage
+ if (eglImageID != 0)
+ {
+ eglDestroyImageKHR(eglGetCurrentDisplay(), eglImageID);
+ eglImageID = 0;
+ }
}
//-----------------------------------------------------------------------------