\r
auto pool = &device_pools_[stride-1][((width << 16) & 0xFFFF0000) | (height & 0x0000FFFF)];\r
\r
- std::shared_ptr<texture> buffer;\r
- if(!pool->try_pop(buffer)) \r
- buffer = spl::make_shared<texture>(width, height, stride);\r
+ std::shared_ptr<texture> tex;\r
+ if(!pool->try_pop(tex)) \r
+ tex = spl::make_shared<texture>(width, height, stride);\r
\r
if(clear)\r
- buffer->clear();\r
+ tex->clear();\r
\r
- return spl::shared_ptr<texture>(buffer.get(), [buffer, pool](texture*) mutable\r
+ return spl::shared_ptr<texture>(tex.get(), [tex, pool](texture*) mutable\r
{ \r
- pool->push(buffer); \r
+ pool->push(tex); \r
});\r
}\r
\r