mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-22 05:15:51 +12:00
Replace Texture::Formats
with PICA::ColorFmt
This enum was a duplicate of the PICA one. Now the PICA one is more complete. Migrate `textureFormatToString` to be next to the enums definition.
This commit is contained in:
parent
5f07f77c94
commit
134e16d8ea
4 changed files with 72 additions and 88 deletions
|
@ -322,7 +322,7 @@ void Renderer::drawVertices(PICA::PrimType primType, std::span<const Vertex> ver
|
|||
const u32 addr = (regs[0x85] & 0x0FFFFFFF) << 3;
|
||||
const u32 format = regs[0x8E] & 0xF;
|
||||
|
||||
Texture targetTex(addr, static_cast<Texture::Formats>(format), width, height, config);
|
||||
Texture targetTex(addr, static_cast<PICA::ColorFmt>(format), width, height, config);
|
||||
OpenGL::Texture tex = getTexture(targetTex);
|
||||
tex.bind();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue