Merge pull request #3654 from ReinUsesLisp/fix-fb-attach

gl_texture_cache: Fix layered texture attachment base level
merge-requests/60/head
Mat M 2020-04-15 03:17:18 +07:00 committed by GitHub
commit 4878d6bb49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

@ -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();