mirror of
https://github.com/libretro/ppsspp.git
synced 2025-02-26 19:46:19 +00:00
capture by value, since the dispatch seems asynchronous
This commit is contained in:
parent
594ed65bd3
commit
3ada988740
@ -1310,7 +1310,7 @@ void DrawTriangle(const VertexData& v0, const VertexData& v1, const VertexData&
|
||||
if (gstate.isModeClear()) {
|
||||
if (range >= 24 && (maxX - minX) >= 24 * 16)
|
||||
{
|
||||
auto bound = [&](int a, int b) -> void {DrawTriangleSlice<true>(v0, v1, v2, minX, minY, maxX, maxY, a, b); };
|
||||
auto bound = [=](int a, int b) -> void {DrawTriangleSlice<true>(v0, v1, v2, minX, minY, maxX, maxY, a, b); };
|
||||
GlobalThreadPool::Loop(bound, 0, range);
|
||||
}
|
||||
else
|
||||
@ -1320,7 +1320,7 @@ void DrawTriangle(const VertexData& v0, const VertexData& v1, const VertexData&
|
||||
} else {
|
||||
if (range >= 24 && (maxX - minX) >= 24 * 16)
|
||||
{
|
||||
auto bound = [&](int a, int b) -> void {DrawTriangleSlice<false>(v0, v1, v2, minX, minY, maxX, maxY, a, b); };
|
||||
auto bound = [=](int a, int b) -> void {DrawTriangleSlice<false>(v0, v1, v2, minX, minY, maxX, maxY, a, b); };
|
||||
GlobalThreadPool::Loop(bound, 0, range);
|
||||
}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user