texture border not supported on mobile

This commit is contained in:
2019-01-19 00:12:45 +01:00
parent c62b81f2b9
commit 886ab1f29b
2 changed files with 3 additions and 2 deletions

View File

@@ -136,7 +136,7 @@ void Sampler::set_filter(GLint filter_min, GLint filter_mag)
}
void Sampler::set_border(glm::vec4 rgba)
{
#if USE_SAMPLER
#if USE_SAMPLER && !defined(__IOS__) && !defined(__ANDROID__)
glSamplerParameterfv(id, GL_TEXTURE_BORDER_COLOR, glm::value_ptr(rgba));
#endif // USE_SAMPLER
}