mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-25 22:25:58 +01:00
Revert "render/egl: remove unused gbm_device member"
This reverts commit 306cf11d87
.
This commit is contained in:
parent
306cf11d87
commit
54e5ef39c0
3 changed files with 7 additions and 0 deletions
|
@ -41,6 +41,7 @@ struct wlr_egl {
|
|||
EGLConfig config; // may be EGL_NO_CONFIG
|
||||
EGLContext context;
|
||||
EGLDeviceEXT device; // may be EGL_NO_DEVICE_EXT
|
||||
struct gbm_device *gbm_device;
|
||||
|
||||
struct {
|
||||
// Display extensions
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <gbm.h>
|
||||
#include <wlr/render/egl.h>
|
||||
#include <wlr/util/log.h>
|
||||
#include <wlr/util/region.h>
|
||||
|
@ -487,6 +488,10 @@ void wlr_egl_destroy(struct wlr_egl *egl) {
|
|||
eglTerminate(egl->display);
|
||||
eglReleaseThread();
|
||||
|
||||
if (egl->gbm_device) {
|
||||
gbm_device_destroy(egl->gbm_device);
|
||||
}
|
||||
|
||||
free(egl);
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#include <assert.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
#include <gbm.h>
|
||||
#include <wlr/render/egl.h>
|
||||
#include <wlr/render/gles2.h>
|
||||
#include <wlr/render/interface.h>
|
||||
|
|
Loading…
Reference in a new issue