Move sampler border parameter to renderer gl
This commit is contained in:
@@ -332,7 +332,10 @@ void Sampler::set_border(glm::vec4 rgba)
|
||||
App::I->render_task([this, rgba]
|
||||
{
|
||||
#if USE_SAMPLER && !defined(__GLES__)
|
||||
glSamplerParameterfv(id, GL_TEXTURE_BORDER_COLOR, glm::value_ptr(rgba));
|
||||
glSamplerParameterfv(
|
||||
id,
|
||||
static_cast<GLenum>(pp::renderer::gl::sampler_border_color_parameter_name()),
|
||||
glm::value_ptr(rgba));
|
||||
#endif // USE_SAMPLER
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user