Small scrolling texture fix
This commit is contained in:
parent
4479b60b98
commit
30f778fc66
|
@ -81,7 +81,7 @@ struct ScrollTarget* find_or_create_scroll_targets(u32 id) {
|
||||||
*/
|
*/
|
||||||
void add_vtx_scroll_target(u32 id, Vtx *vtx, u32 size) {
|
void add_vtx_scroll_target(u32 id, Vtx *vtx, u32 size) {
|
||||||
struct ScrollTarget *scroll = find_or_create_scroll_targets(id);
|
struct ScrollTarget *scroll = find_or_create_scroll_targets(id);
|
||||||
if (!scroll || !scroll->vertices) { return; }
|
if (!scroll) { return; }
|
||||||
Vtx* *newArray;
|
Vtx* *newArray;
|
||||||
u32 oldSize = sizeof(void*) * scroll->size;
|
u32 oldSize = sizeof(void*) * scroll->size;
|
||||||
u32 newSize = oldSize + (sizeof(void*) * size);
|
u32 newSize = oldSize + (sizeof(void*) * size);
|
||||||
|
|
Loading…
Reference in New Issue