We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 33f1379 commit f4cc99cCopy full SHA for f4cc99c
1 file changed
pathfinder/core/renderer.cpp
@@ -156,7 +156,12 @@ std::shared_ptr<Sampler> Renderer::get_default_sampler() {
156
// Note: It has to be CLAMP_TO_EDGE. Artifacts will show for both REPEAT and MIRRORED_REPEAT.
157
flags.value = 0;
158
159
- return get_or_create_sampler(TextureSamplingFlags{});
+ // Raspberry PI only supports NEAREST for NPOT textures.
160
+#if defined(__linux__) && defined(__ARM_ARCH)
161
+ flags.value |= TextureSamplingFlags::NEAREST_MIN | TextureSamplingFlags::NEAREST_MAG;
162
+#endif
163
+
164
+ return get_or_create_sampler(flags);
165
}
166
167
void Renderer::upload_texture_metadata(const std::vector<TextureMetadataEntry> &metadata,
0 commit comments