shared-macros.mk: simplify java settings
[oi-userland.git] / components / library / qt6 / patches / 03-qssgrenderparticles.cpp.patch
blobe5d436fab26c37e82fae63c173002686efbdd320
1 --- qt-everywhere-src-6.2.4/qtquick3d/src/runtimerender/graphobjects/qssgrenderparticles.cpp Tue Mar 8 03:52:29 2022
2 +++ qt-everywhere-src-6.2.4_patched/qtquick3d/src/runtimerender/graphobjects/qssgrenderparticles.cpp Sun Mar 27 00:56:06 2022
3 @@ -54,7 +54,7 @@
5 int vec4PerParticle = ceilDivide(particleSize, 16);
6 int vec4s = particleCount * vec4PerParticle;
7 - int width = divisibleBy(std::sqrt(vec4s), vec4PerParticle);
8 + int width = divisibleBy((int)std::sqrt((double)vec4s), vec4PerParticle);
9 int height = ceilDivide(vec4s, width);
10 m_particlesPerSlice = width / vec4PerParticle;
11 m_particleCount = particleCount;