mirror of https://git.suyu.dev/suyu/suyu
gl_rasterizer_cache: Use std::vector::assign in LoadGLBuffer() for the non-tiled case
resize() causes the vector to expand and zero out the added members to the vector, however we can avoid this zeroing by using assign(). Given we have the pointer to the data we want to copy, we can calculate the end pointer and directly copy the range of data without the need to perform the resize() beforehand.merge-requests/60/head
parent
557c466994
commit
434f352eb3
Loading…
Reference in New Issue