summaryrefslogtreecommitdiff
path: root/render/fx_renderer
diff options
context:
space:
mode:
Diffstat (limited to 'render/fx_renderer')
-rw-r--r--render/fx_renderer/fx_pass.c2
-rw-r--r--render/fx_renderer/matrix.c5
2 files changed, 6 insertions, 1 deletions
diff --git a/render/fx_renderer/fx_pass.c b/render/fx_renderer/fx_pass.c
index 9a8c90c..231de33 100644
--- a/render/fx_renderer/fx_pass.c
+++ b/render/fx_renderer/fx_pass.c
@@ -11,7 +11,7 @@
#include "render/fx_renderer/fx_renderer.h"
#include "render/fx_renderer/matrix.h"
#include "render/pass.h"
-#include "types/fx/shadow_data.h"
+#include "scenefx/types/fx/shadow_data.h"
#define MAX_QUADS 86 // 4kb
diff --git a/render/fx_renderer/matrix.c b/render/fx_renderer/matrix.c
index 8f0fe15..8cdce37 100644
--- a/render/fx_renderer/matrix.c
+++ b/render/fx_renderer/matrix.c
@@ -2,6 +2,7 @@
#include <string.h>
#include <wlr/types/wlr_output.h>
+#include "config.h"
#include "render/fx_renderer/matrix.h"
static const float transforms[][9] = {
@@ -47,6 +48,8 @@ static const float transforms[][9] = {
},
};
+#if !HAVE_WLROOTS_SUBPROJECT
+
void matrix_projection(float mat[static 9], int width, int height,
enum wl_output_transform transform) {
memset(mat, 0, sizeof(*mat) * 9);
@@ -68,3 +71,5 @@ void matrix_projection(float mat[static 9], int width, int height,
// Identity
mat[8] = 1.0f;
}
+
+#endif /* ifndef HAVE_WLROOTS_SUBPROJECT */