Code generator (start)

This commit is contained in:
Jakub Melka
2020-03-19 18:17:08 +01:00
parent 36cdb41cdb
commit 96d2e33692
9 changed files with 388 additions and 4 deletions

View File

@ -646,7 +646,7 @@ PDFMesh PDFFunctionShading::createMesh(const PDFMeshQualitySettings& settings, c
{
if (std::fabs(sourceColorBuffer[colorComponentIndex + i] - sourceColorBuffer[colorOtherComponentIndex + i]) > settings.tolerance)
{
isMeshOK.store(std::memory_order_relaxed);
isMeshOK.store(false, std::memory_order_relaxed);
return;
}
}
@ -659,7 +659,7 @@ PDFMesh PDFFunctionShading::createMesh(const PDFMeshQualitySettings& settings, c
{
if (std::fabs(sourceColorBuffer[colorComponentIndex + i] - sourceColorBuffer[colorOtherComponentIndex + i]) > settings.tolerance)
{
isMeshOK.store(std::memory_order_relaxed);
isMeshOK.store(false, std::memory_order_relaxed);
return;
}
}