mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-09-15 00:55:33 +00:00
OpenGL: border_color was never set. Fixed. (#1740)
This commit is contained in:
parent
d8aa2460ef
commit
aab41604f7
@ -812,6 +812,7 @@ void RasterizerOpenGL::SamplerInfo::SyncWithConfig(const Pica::Regs::TextureConf
|
|||||||
|
|
||||||
if (wrap_s == TextureConfig::ClampToBorder || wrap_t == TextureConfig::ClampToBorder) {
|
if (wrap_s == TextureConfig::ClampToBorder || wrap_t == TextureConfig::ClampToBorder) {
|
||||||
if (border_color != config.border_color.raw) {
|
if (border_color != config.border_color.raw) {
|
||||||
|
border_color = config.border_color.raw;
|
||||||
auto gl_color = PicaToGL::ColorRGBA8(border_color);
|
auto gl_color = PicaToGL::ColorRGBA8(border_color);
|
||||||
glSamplerParameterfv(s, GL_TEXTURE_BORDER_COLOR, gl_color.data());
|
glSamplerParameterfv(s, GL_TEXTURE_BORDER_COLOR, gl_color.data());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user