citra-emu
/
citra
Archived
1
0
Fork 0

Fix software renderer for empty texture addresses (#5893)

This commit is contained in:
trimental 2022-01-08 01:36:01 +08:00 committed by GitHub
parent 60d1def6f8
commit 2670b951e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -323,7 +323,10 @@ static void ProcessTriangleInternal(const Vertex& v0, const Vertex& v1, const Ve
if (!texture.enabled)
continue;
DEBUG_ASSERT(0 != texture.config.address);
if (texture.config.address == 0) {
texture_color[i] = {0, 0, 0, 255};
continue;
}
int coordinate_i =
(i == 2 && regs.texturing.main_config.texture2_use_coord1) ? 1 : i;