summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2019-02-08 18:32:58 -0300
committerGravatar ReinUsesLisp2019-02-08 18:32:58 -0300
commite36e7ae74e7a2a1313230872bac148f0b6a1df37 (patch)
treed4d7a95711306a82a0ecd65f65d5b38f3c167ff5 /src
parentMerge pull request #2083 from ReinUsesLisp/shader-ir-cbuf-tracking (diff)
downloadyuzu-e36e7ae74e7a2a1313230872bac148f0b6a1df37.tar.gz
yuzu-e36e7ae74e7a2a1313230872bac148f0b6a1df37.tar.xz
yuzu-e36e7ae74e7a2a1313230872bac148f0b6a1df37.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer_cache.cpp4
1 files 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() {
853 constexpr GLuint min_level = 0; 853 constexpr GLuint min_level = 0;
854 854
855 glGenTextures(1, &texture_view.handle); 855 glGenTextures(1, &texture_view.handle);
856 glTextureView(texture_view.handle, target, texture.handle, gl_internal_format, 0, 856 glTextureView(texture_view.handle, target, texture.handle, gl_internal_format, min_level,
857 params.max_mip_level, 0, 1); 857 params.max_mip_level, min_layer, num_layers);
858 ApplyTextureDefaults(texture_view.handle, params.max_mip_level); 858 ApplyTextureDefaults(texture_view.handle, params.max_mip_level);
859 glTextureParameteriv(texture_view.handle, GL_TEXTURE_SWIZZLE_RGBA, 859 glTextureParameteriv(texture_view.handle, GL_TEXTURE_SWIZZLE_RGBA,
860 reinterpret_cast<const GLint*>(swizzle.data())); 860 reinterpret_cast<const GLint*>(swizzle.data()));