Skip to content

Commit d06cb31

Browse files
committed
Fixed C++20 deprecated lambda capture.
1 parent 4602a01 commit d06cb31

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/40-svt/vt.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -442,8 +442,8 @@ PageTable::PageTable(PageCache* _cache, VirtualTextureInfo* _info, PageIndexer*
442442
m_quadtree = BX_NEW(VirtualTexture::getAllocator(), Quadtree)({ 0, 0, size, size }, (int)bx::log2((float)size));
443443
m_texture = bgfx::createTexture2D((uint16_t)size, (uint16_t)size, true, 1, bgfx::TextureFormat::BGRA8, BGFX_SAMPLER_UVW_CLAMP | BGFX_SAMPLER_POINT | BGFX_TEXTURE_BLIT_DST);
444444

445-
_cache->added = [=](Page page, Point pt) { m_quadtreeDirty = true; m_quadtree->add(page, pt); };
446-
_cache->removed = [=](Page page, Point pt) { m_quadtreeDirty = true; m_quadtree->remove(page); BX_UNUSED(pt); };
445+
_cache->added = [this](Page page, Point pt) { m_quadtreeDirty = true; m_quadtree->add(page, pt); };
446+
_cache->removed = [this](Page page, Point pt) { m_quadtreeDirty = true; m_quadtree->remove(page); BX_UNUSED(pt); };
447447

448448
auto PageTableSizeLog2 = m_indexer->getMipCount();
449449

0 commit comments

Comments
 (0)