mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-11 09:24:57 +00:00
gl_rasterizer_cache: Fixup test clause
This commit is contained in:
parent
911587fb8d
commit
3e80b08944
1 changed files with 5 additions and 6 deletions
|
@ -883,12 +883,11 @@ void CachedSurface::UpdateSwizzle(Tegra::Texture::SwizzleSource swizzle_x,
|
||||||
if (swizzle[0] == new_x && swizzle[1] == new_y && swizzle[2] == new_z && swizzle[3] == new_w) {
|
if (swizzle[0] == new_x && swizzle[1] == new_y && swizzle[2] == new_z && swizzle[3] == new_w) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
swizzle = {new_x, new_y, new_z, new_w};
|
swizzle = {new_x, new_y, new_z, new_w};
|
||||||
const auto swizzle_data = reinterpret_cast<const GLint*>(swizzle.data());
|
const auto swizzle_data = reinterpret_cast<const GLint*>(swizzle.data());
|
||||||
glTextureParameteriv(texture.handle, GL_TEXTURE_SWIZZLE_RGBA, swizzle_data);
|
glTextureParameteriv(texture.handle, GL_TEXTURE_SWIZZLE_RGBA, swizzle_data);
|
||||||
if (texture_view.handle != 0) {
|
if (texture_view.handle != 0) {
|
||||||
glTextureParameteriv(texture_view.handle, GL_TEXTURE_SWIZZLE_RGBA, swizzle_data);
|
glTextureParameteriv(texture_view.handle, GL_TEXTURE_SWIZZLE_RGBA, swizzle_data);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue