Skip to content

Commit ed6a72a

Browse files
jsoulierslouken
authored andcommitted
Fix reallocation of GPU renderer vertex buffer
1 parent 7840c9d commit ed6a72a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/render/gpu/SDL_render_gpu.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -722,6 +722,8 @@ static bool InitVertexBuffer(GPU_RenderData *data, Uint32 size)
722722
return false;
723723
}
724724

725+
data->vertices.buffer_size = size;
726+
725727
return true;
726728
}
727729

0 commit comments

Comments
 (0)