Loading opengl/tests/hwc/hwcStress.cpp +2 −2 Original line number Original line Diff line number Diff line Loading @@ -574,8 +574,8 @@ void initFrames(unsigned int seed) // mod the wMod/hMod value must be equal to 0. // mod the wMod/hMod value must be equal to 0. size_t w = (width * maxSizeRatio) * testRandFract(); size_t w = (width * maxSizeRatio) * testRandFract(); size_t h = (height * maxSizeRatio) * testRandFract(); size_t h = (height * maxSizeRatio) * testRandFract(); w = max(1u, w); w = max(size_t(1u), w); h = max(1u, h); h = max(size_t(1u), h); if ((w % formatPtr->wMod) != 0) { if ((w % formatPtr->wMod) != 0) { w += formatPtr->wMod - (w % formatPtr->wMod); w += formatPtr->wMod - (w % formatPtr->wMod); } } Loading Loading
opengl/tests/hwc/hwcStress.cpp +2 −2 Original line number Original line Diff line number Diff line Loading @@ -574,8 +574,8 @@ void initFrames(unsigned int seed) // mod the wMod/hMod value must be equal to 0. // mod the wMod/hMod value must be equal to 0. size_t w = (width * maxSizeRatio) * testRandFract(); size_t w = (width * maxSizeRatio) * testRandFract(); size_t h = (height * maxSizeRatio) * testRandFract(); size_t h = (height * maxSizeRatio) * testRandFract(); w = max(1u, w); w = max(size_t(1u), w); h = max(1u, h); h = max(size_t(1u), h); if ((w % formatPtr->wMod) != 0) { if ((w % formatPtr->wMod) != 0) { w += formatPtr->wMod - (w % formatPtr->wMod); w += formatPtr->wMod - (w % formatPtr->wMod); } } Loading