aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/render/wlr_texture.h15
-rw-r--r--include/wlr/render/wlr_texture.h10
2 files changed, 10 insertions, 15 deletions
diff --git a/include/render/wlr_texture.h b/include/render/wlr_texture.h
deleted file mode 100644
index eb94824f..00000000
--- a/include/render/wlr_texture.h
+++ /dev/null
@@ -1,15 +0,0 @@
-#ifndef RENDER_WLR_TEXTURE_H
-#define RENDER_WLR_TEXTURE_H
-
-#include <wlr/render/wlr_texture.h>
-
-/**
- * Create a new texture from a buffer.
- *
- * Should not be called in a rendering block like renderer_begin()/end() or
- * between attaching a renderer to an output and committing it.
- */
-struct wlr_texture *wlr_texture_from_buffer(struct wlr_renderer *renderer,
- struct wlr_buffer *buffer);
-
-#endif
diff --git a/include/wlr/render/wlr_texture.h b/include/wlr/render/wlr_texture.h
index aa905238..3495c443 100644
--- a/include/wlr/render/wlr_texture.h
+++ b/include/wlr/render/wlr_texture.h
@@ -13,6 +13,7 @@
#include <wayland-server-core.h>
#include <wlr/render/dmabuf.h>
+struct wlr_buffer;
struct wlr_renderer;
struct wlr_texture_impl;
@@ -73,4 +74,13 @@ bool wlr_texture_write_pixels(struct wlr_texture *texture,
*/
void wlr_texture_destroy(struct wlr_texture *texture);
+/**
+ * Create a new texture from a buffer.
+ *
+ * Should not be called in a rendering block like renderer_begin()/end() or
+ * between attaching a renderer to an output and committing it.
+ */
+struct wlr_texture *wlr_texture_from_buffer(struct wlr_renderer *renderer,
+ struct wlr_buffer *buffer);
+
#endif