Skip to content

Commit a95e33a

Browse files
committed
extra-animations: vortex: Pass vertex data as floats
1 parent 4619e7c commit a95e33a

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

src/extra-animations/vortex.hpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -175,14 +175,14 @@ class vortex_transformer : public wf::scene::view_2d_transformer_t
175175
0.0f, 1.0f,
176176
};
177177

178-
const double vertex_data_pos[] = {
179-
src_box.x,
180-
src_box.y + src_box.height,
181-
src_box.x + src_box.width,
182-
src_box.y + src_box.height,
183-
src_box.x + src_box.width,
184-
src_box.y,
185-
src_box.x, src_box.y,
178+
static const float vertex_data_pos[] = {
179+
(float)src_box.x,
180+
(float)src_box.y + (float)src_box.height,
181+
(float)src_box.x + (float)src_box.width,
182+
(float)src_box.y + (float)src_box.height,
183+
(float)src_box.x + (float)src_box.width,
184+
(float)src_box.y,
185+
(float)src_box.x, (float)src_box.y,
186186
};
187187

188188
data.pass->custom_gles_subpass([&]

0 commit comments

Comments
 (0)