mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-20 19:44:58 +00:00
renderer_gl: Search for framebuffers in tex unit sync
This commit is contained in:
parent
7249a1f8a6
commit
45a07147ad
1 changed files with 6 additions and 0 deletions
|
@ -321,6 +321,12 @@ void RendererGL::bindTexturesToSlots() {
|
|||
u32 format = regs[ioBase + (i == 0 ? 13 : 5)] & 0xF;
|
||||
|
||||
glActiveTexture(GL_TEXTURE0 + i);
|
||||
auto fb = getColourBuffer(addr, static_cast<PICA::ColorFmt>(format), width, height, false);
|
||||
if (fb.has_value()) {
|
||||
fb->texture.bind();
|
||||
continue;
|
||||
}
|
||||
|
||||
Texture targetTex(addr, static_cast<PICA::TextureFmt>(format), width, height, config);
|
||||
OpenGL::Texture tex = getTexture(targetTex);
|
||||
tex.bind();
|
||||
|
|
Loading…
Add table
Reference in a new issue