yuzu-emu
/
yuzu
Archived
1
0
Fork 0

gl_texture_cache: Fix layered texture attachment base level

The base level is already included in the texture view. If we specify
the base level in the texture again, this will end up in the incorrect
level and potentially out of bounds.
This commit is contained in:
ReinUsesLisp 2020-04-13 18:24:54 -03:00
parent 7e4a132a77
commit 21dc842171
1 changed files with 1 additions and 1 deletions

View File

@ -417,7 +417,7 @@ void CachedSurfaceView::Attach(GLenum attachment, GLenum target) const {
switch (params.target) { switch (params.target) {
case SurfaceTarget::Texture2DArray: case SurfaceTarget::Texture2DArray:
glFramebufferTexture(target, attachment, GetTexture(), params.base_level); glFramebufferTexture(target, attachment, GetTexture(), 0);
break; break;
default: default:
UNIMPLEMENTED(); UNIMPLEMENTED();