ui/gtk-egl: un-tab and re-tab should destroy egl surface and context
commit1ab2628fc6d7f3343df7007baa57caa26dc83b6b
authorDongwon Kim <dongwon.kim@intel.com>
Thu, 4 Nov 2021 06:51:48 +0000 (3 23:51 -0700)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 5 Nov 2021 11:29:23 +0000 (5 12:29 +0100)
tree3f26027b2f39e6b645909db93e653a71dbeb5a38
parente86a93f55463c088aa0b5260e915ffbf9f86c62b
ui/gtk-egl: un-tab and re-tab should destroy egl surface and context

An old esurface should be destroyed and set to be NULL when doing
un-tab and re-tab so that a new esurface an context can be created
for the window widget that those will be bound to.

v2: enabling opengl specific routines only when CONFIG_OPENGL is set

Cc: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Dongwon Kim <dongwon.kim@intel.com>
Signed-off-by: Khairul Anuar Romli <khairul.anuar.romli@intel.com>
Message-Id: <20211104065153.28897-1-dongwon.kim@intel.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/gtk.c