[nostalgia/core/studio] Change some lambdas to capture by reference

This commit is contained in:
2022-03-03 19:24:55 -06:00
parent ebb7d54403
commit 191298a4ca
2 changed files with 2 additions and 2 deletions
@@ -79,7 +79,7 @@ void TileSheetPixels::setPixelBufferObject(const geo::Vec2 &paneSize, unsigned v
}
void TileSheetPixels::setBufferObjects(const geo::Vec2 &paneSize, const TileSheet &img, const TileSheet::SubSheet &subSheet, const Palette &pal, glutils::BufferSet *bg) noexcept {
const auto setPixel = [this, paneSize, bg, subSheet, pal](std::size_t i, uint8_t p) {
const auto setPixel = [this, &paneSize, &bg, &subSheet, &pal](std::size_t i, uint8_t p) {
const auto color = pal.colors[p];
const auto pt = idxToPt(static_cast<int>(i), subSheet.columns);
const auto fx = static_cast<float>(pt.x);