summaryrefslogtreecommitdiffstats
path: root/evs
diff options
context:
space:
mode:
authormin.yun2018-04-25 02:12:37 -0500
committermin.yun2018-04-25 02:12:37 -0500
commit0a0798008327925d19d5bc36be113a5972423279 (patch)
treeae23f5296780250aaa2b680319f0dae89a4c67af /evs
parent4d1e3469cb2f285e7a4a864bd48a4c5177e7c83f (diff)
downloadplatform-packages-services-car-0a0798008327925d19d5bc36be113a5972423279.tar.gz
platform-packages-services-car-0a0798008327925d19d5bc36be113a5972423279.tar.xz
platform-packages-services-car-0a0798008327925d19d5bc36be113a5972423279.zip
evs_app : Call detachRenderTarget to free resourcesandroid-wear-p-preview-2android-o-mr1-iot-release-1.0.0
* Call detachRenderTarget after drawFrame to free resources * If detachRenderTarget isn't called, drawFrame return false and evs_app restart. Cause of restart evs_app, the display blink.
Diffstat (limited to 'evs')
-rw-r--r--evs/app/RenderDirectView.cpp2
-rw-r--r--evs/app/RenderTopView.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/evs/app/RenderDirectView.cpp b/evs/app/RenderDirectView.cpp
index 24eb4854..45dfa781 100644
--- a/evs/app/RenderDirectView.cpp
+++ b/evs/app/RenderDirectView.cpp
@@ -135,6 +135,6 @@ bool RenderDirectView::drawFrame(const BufferDesc& tgtBuffer) {
135 135
136 // Wait for the rendering to finish 136 // Wait for the rendering to finish
137 glFinish(); 137 glFinish();
138 138 detachRenderTarget();
139 return true; 139 return true;
140} 140}
diff --git a/evs/app/RenderTopView.cpp b/evs/app/RenderTopView.cpp
index 1579a0a5..e8f73997 100644
--- a/evs/app/RenderTopView.cpp
+++ b/evs/app/RenderTopView.cpp
@@ -214,7 +214,7 @@ bool RenderTopView::drawFrame(const BufferDesc& tgtBuffer) {
214 214
215 // Wait for the rendering to finish 215 // Wait for the rendering to finish
216 glFinish(); 216 glFinish();
217 217 detachRenderTarget();
218 return true; 218 return true;
219} 219}
220 220