summaryrefslogtreecommitdiff
path: root/src/common/memory_util.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-08-08 23:28:01 -0400
committerLioncash <mathew1800@gmail.com>2018-08-08 23:34:58 -0400
commit434f352eb37fba2a5c80bead61a8c5593785730d (patch)
tree8ea1988115400fdde58094c12aa3f451947a4a66 /src/common/memory_util.cpp
parent557c4669945fa7a30d3c6af25ce383d507232a7e (diff)
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/common/memory_util.cpp')
0 files changed, 0 insertions, 0 deletions