Skip to content

Commit

Permalink
dont destroy images
Browse files Browse the repository at this point in the history
  • Loading branch information
Comma Device committed Jun 3, 2022
1 parent a17f9c5 commit 92f1db3
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions selfdrive/ui/qt/widgets/cameraview.cc
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,6 @@ CameraViewWidget::~CameraViewWidget() {
glDeleteBuffers(1, &frame_vbo);
glDeleteBuffers(1, &frame_ibo);
glDeleteBuffers(2, textures);

#ifdef QCOM2
EGLDisplay display = eglGetCurrentDisplay();
for (auto &pair : egl_images) {
eglDestroyImageKHR(display, pair.second);
}
#endif
}
doneCurrent();
}
Expand Down Expand Up @@ -288,12 +281,7 @@ void CameraViewWidget::vipcConnected(VisionIpcClient *vipc_client) {

#ifdef QCOM2
EGLDisplay display = eglGetCurrentDisplay();

for (auto &pair : egl_images) {
eglDestroyImageKHR(display, pair.second);
}
egl_images.clear();

for (int i = 0; i < vipc_client->num_buffers; i++) { // import buffers into OpenGL
int fd = vipc_client->buffers[i].fd;
EGLint img_attrs[] = {
Expand Down

0 comments on commit 92f1db3

Please sign in to comment.