summaryrefslogtreecommitdiff
path: root/src/core/loader/loader.cpp
diff options
context:
space:
mode:
authorGravatar Lioncash2018-08-08 23:28:01 -0400
committerGravatar Lioncash2018-08-08 23:34:58 -0400
commit434f352eb37fba2a5c80bead61a8c5593785730d (patch)
tree8ea1988115400fdde58094c12aa3f451947a4a66 /src/core/loader/loader.cpp
parentgl_rasterizer_cache: Make pointer const in LoadGLBuffer() (diff)
downloadyuzu-434f352eb37fba2a5c80bead61a8c5593785730d.tar.gz
yuzu-434f352eb37fba2a5c80bead61a8c5593785730d.tar.xz
yuzu-434f352eb37fba2a5c80bead61a8c5593785730d.zip
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.
Diffstat (limited to 'src/core/loader/loader.cpp')
0 files changed, 0 insertions, 0 deletions