diff options
author | bunnei <bunneidev@gmail.com> | 2019-02-08 23:30:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-08 23:30:36 +0100 |
commit | 504aafedd275c0cf230cf4940ce1eb03cf8afe2a (patch) | |
tree | d4d7a95711306a82a0ecd65f65d5b38f3c167ff5 /src/video_core | |
parent | Merge pull request #2083 from ReinUsesLisp/shader-ir-cbuf-tracking (diff) | |
parent | gl_rasterizer_cache: Fixup texture view parameters (diff) | |
download | yuzu-504aafedd275c0cf230cf4940ce1eb03cf8afe2a.tar yuzu-504aafedd275c0cf230cf4940ce1eb03cf8afe2a.tar.gz yuzu-504aafedd275c0cf230cf4940ce1eb03cf8afe2a.tar.bz2 yuzu-504aafedd275c0cf230cf4940ce1eb03cf8afe2a.tar.lz yuzu-504aafedd275c0cf230cf4940ce1eb03cf8afe2a.tar.xz yuzu-504aafedd275c0cf230cf4940ce1eb03cf8afe2a.tar.zst yuzu-504aafedd275c0cf230cf4940ce1eb03cf8afe2a.zip |
Diffstat (limited to 'src/video_core')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer_cache.cpp | 4 |
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() { 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<const GLint*>(swizzle.data())); |