Fix unexplainable bug in MSVC.
This looks like a code generation bug. In the old case while calling universal->generate() with first non-zero argument inside generate() call the value was zero.
This commit is contained in:
parent
721d143c89
commit
3b6a44c4f8
1 changed files with 2 additions and 1 deletions
|
|
@ -831,9 +831,10 @@ void Instance::generateCache() {
|
||||||
universal = Universal,
|
universal = Universal,
|
||||||
guard = _generating.make_guard()
|
guard = _generating.make_guard()
|
||||||
]() mutable {
|
]() mutable {
|
||||||
|
auto image = universal->generate(size, index);
|
||||||
crl::on_main(std::move(guard), [
|
crl::on_main(std::move(guard), [
|
||||||
=,
|
=,
|
||||||
image = universal->generate(size, index)
|
image = std::move(image)
|
||||||
]() mutable {
|
]() mutable {
|
||||||
if (universal != Universal) {
|
if (universal != Universal) {
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue