mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-03 09:40:00 +00:00
gl_rasterizer_cache: Fixup texture view parameters
These parameters were declared as constants and passed to glTextureView but then they were removed on a rabase. This addresses that mistake.
This commit is contained in:
parent
f09d1dffd1
commit
e36e7ae74e
1 changed files with 2 additions and 2 deletions
|
@ -853,8 +853,8 @@ void CachedSurface::EnsureTextureView() {
|
||||||
constexpr GLuint min_level = 0;
|
constexpr GLuint min_level = 0;
|
||||||
|
|
||||||
glGenTextures(1, &texture_view.handle);
|
glGenTextures(1, &texture_view.handle);
|
||||||
glTextureView(texture_view.handle, target, texture.handle, gl_internal_format, 0,
|
glTextureView(texture_view.handle, target, texture.handle, gl_internal_format, min_level,
|
||||||
params.max_mip_level, 0, 1);
|
params.max_mip_level, min_layer, num_layers);
|
||||||
ApplyTextureDefaults(texture_view.handle, params.max_mip_level);
|
ApplyTextureDefaults(texture_view.handle, params.max_mip_level);
|
||||||
glTextureParameteriv(texture_view.handle, GL_TEXTURE_SWIZZLE_RGBA,
|
glTextureParameteriv(texture_view.handle, GL_TEXTURE_SWIZZLE_RGBA,
|
||||||
reinterpret_cast<const GLint*>(swizzle.data()));
|
reinterpret_cast<const GLint*>(swizzle.data()));
|
||||||
|
|
Loading…
Reference in a new issue