From e36e7ae74e7a2a1313230872bac148f0b6a1df37 Mon Sep 17 00:00:00 2001 From: ReinUsesLisp Date: Fri, 8 Feb 2019 18:32:58 -0300 Subject: [PATCH] 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. --- src/video_core/renderer_opengl/gl_rasterizer_cache.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp index a79eee03e..b77768c79 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp @@ -853,8 +853,8 @@ void CachedSurface::EnsureTextureView() { constexpr GLuint min_level = 0; glGenTextures(1, &texture_view.handle); - glTextureView(texture_view.handle, target, texture.handle, gl_internal_format, 0, - params.max_mip_level, 0, 1); + glTextureView(texture_view.handle, target, texture.handle, gl_internal_format, min_level, + params.max_mip_level, min_layer, num_layers); ApplyTextureDefaults(texture_view.handle, params.max_mip_level); glTextureParameteriv(texture_view.handle, GL_TEXTURE_SWIZZLE_RGBA, reinterpret_cast(swizzle.data()));