mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-22 18:09:49 +01:00
render: stop pulling <wlr/backend.h>
Let's just forward-declare struct wlr_backend instead. We need to fixup the Vulkan renderer: it needs makedev(), which got included by chance via <wlr/backend.h> → <wlr/backend/session.h> → <libudev.h>.
This commit is contained in:
parent
8a56490229
commit
99134c26b8
2 changed files with 5 additions and 1 deletions
|
@ -11,9 +11,9 @@
|
|||
|
||||
#include <stdint.h>
|
||||
#include <wayland-server-core.h>
|
||||
#include <wlr/backend.h>
|
||||
#include <wlr/render/wlr_texture.h>
|
||||
|
||||
struct wlr_backend;
|
||||
struct wlr_renderer_impl;
|
||||
struct wlr_drm_format_set;
|
||||
struct wlr_buffer;
|
||||
|
|
|
@ -12,6 +12,10 @@
|
|||
#include <wlr/config.h>
|
||||
#include "render/vulkan.h"
|
||||
|
||||
#if defined(__linux__)
|
||||
#include <sys/sysmacros.h>
|
||||
#endif
|
||||
|
||||
static bool check_extension(const VkExtensionProperties *avail,
|
||||
uint32_t avail_len, const char *name) {
|
||||
for (size_t i = 0; i < avail_len; i++) {
|
||||
|
|
Loading…
Reference in a new issue