File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 55
66#include " ../config.h"
77
8- #ifdef __ANDROID__
8+ #if defined( __ANDROID__) || (defined(__linux__) && defined(__ARM_ARCH))
99 // A C/C++ header file that converts Intel SSE intrinsics to Arm/Aarch64 NEON intrinsics.
1010 #include < sse2neon.h>
1111#else
Original file line number Diff line number Diff line change @@ -321,6 +321,10 @@ PaintLocationsInfo Palette::assign_paint_locations(const std::shared_ptr<PaintTe
321321 if (!pattern.smoothing_enabled ()) {
322322 sampling_flags.value |= TextureSamplingFlags::NEAREST_MIN | TextureSamplingFlags::NEAREST_MAG;
323323 }
324+ // Raspberry PI only supports NEAREST for NPOT textures.
325+ #if defined(__linux__) && defined(__ARM_ARCH)
326+ sampling_flags.value |= TextureSamplingFlags::NEAREST_MIN | TextureSamplingFlags::NEAREST_MAG;
327+ #endif
324328
325329 PaintFilter paint_filter;
326330 // We can have a pattern without a filter.
You can’t perform that action at this time.
0 commit comments