aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/render/drm_format_set.h2
-rw-r--r--include/wlr/render/swapchain.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/render/drm_format_set.h b/include/render/drm_format_set.h
index 8734ea7a..1ffc2a90 100644
--- a/include/render/drm_format_set.h
+++ b/include/render/drm_format_set.h
@@ -6,7 +6,7 @@
void wlr_drm_format_init(struct wlr_drm_format *fmt, uint32_t format);
bool wlr_drm_format_has(const struct wlr_drm_format *fmt, uint64_t modifier);
bool wlr_drm_format_add(struct wlr_drm_format *fmt, uint64_t modifier);
-struct wlr_drm_format *wlr_drm_format_dup(const struct wlr_drm_format *format);
+bool wlr_drm_format_copy(struct wlr_drm_format *dst, const struct wlr_drm_format *src);
/**
* Intersect modifiers for two DRM formats.
*
diff --git a/include/wlr/render/swapchain.h b/include/wlr/render/swapchain.h
index 38b1fb8b..8bb8afc9 100644
--- a/include/wlr/render/swapchain.h
+++ b/include/wlr/render/swapchain.h
@@ -19,7 +19,7 @@ struct wlr_swapchain {
struct wlr_allocator *allocator; // NULL if destroyed
int width, height;
- struct wlr_drm_format *format;
+ struct wlr_drm_format format;
struct wlr_swapchain_slot slots[WLR_SWAPCHAIN_CAP];