mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-25 08:32:30 +00: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
@ -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 New Issue
Block a user