graphics/f3d: Fix build on 32 bit platforms
PR: 269344 (cherry picked from commit 8b9ae5f98cd2d153cdf88f06ac38ce973894f6c8)