mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-05 01:42:41 +00:00
FramebufferManager: Bind only the first framebuffer layer when the EFB only has one layer.
This commit is contained in:
parent
6d5e9cb5b1
commit
42bb48bd46
5 changed files with 24 additions and 17 deletions
|
@ -226,7 +226,7 @@ TextureCache::TCacheEntryBase* TextureCache::CreateRenderTargetTexture(
|
|||
|
||||
glGenFramebuffers(1, &entry->framebuffer);
|
||||
FramebufferManager::SetFramebuffer(entry->framebuffer);
|
||||
glFramebufferTexture(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, entry->texture, 0);
|
||||
FramebufferManager::FramebufferTexture(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D_ARRAY, entry->texture, 0);
|
||||
|
||||
SetStage();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue