Skip to content

Commit 69581ae

Browse files
committed
update
1 parent 599b3cb commit 69581ae

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

src/ruis/render/null/factory.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,13 @@ utki::shared_ref<ruis::render::texture_cube> factory::create_texture_cube(
9999

100100
utki::shared_ref<ruis::render::vertex_array> factory::create_vertex_array(
101101
std::vector<utki::shared_ref<const ruis::render::vertex_buffer>> buffers,
102-
const utki::shared_ref<const ruis::render::index_buffer>& indices,
102+
utki::shared_ref<const ruis::render::index_buffer> indices,
103103
ruis::render::vertex_array::mode rendering_mode
104104
)
105105
{
106106
return utki::make_shared<vertex_array>(
107107
std::move(buffers), //
108-
indices,
108+
std::move(indices),
109109
rendering_mode
110110
);
111111
}

src/ruis/render/null/factory.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class factory : public ruis::render::factory
7777

7878
utki::shared_ref<ruis::render::vertex_array> create_vertex_array(
7979
std::vector<utki::shared_ref<const ruis::render::vertex_buffer>> buffers,
80-
const utki::shared_ref<const ruis::render::index_buffer>& indices,
80+
utki::shared_ref<const ruis::render::index_buffer> indices,
8181
ruis::render::vertex_array::mode rendering_mode
8282
) override;
8383

src/ruis/render/null/vertex_array.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,9 @@ vertex_array::vertex_array(
2828
utki::shared_ref<const ruis::render::index_buffer> indices,
2929
ruis::render::vertex_array::mode rendering_mode
3030
) :
31-
ruis::render::vertex_array(std::move(buffers), std::move(indices), rendering_mode)
31+
ruis::render::vertex_array(
32+
std::move(buffers), //
33+
std::move(indices),
34+
rendering_mode
35+
)
3236
{}

0 commit comments

Comments
 (0)