texture_cache/surface_base: Fix out of bounds texture views
Some texture views were being created out of bounds (with more layers or mipmaps than what the original texture has). This is because of a miscalculation in mipmap bounding. end_layer and end_mipmap are out of bounds (e.g. layer 6 in a cubemap), there's no need to add one more there. Fixes OpenGL errors and Vulkan crashes on Splatoon 2.master
parent
e3ee017e91
commit
ff64c3951a
Loading…
Reference in New Issue