mirror of
https://github.com/citra-emu/citra.git
synced 2024-12-18 19:40:05 +00:00
Fix software renderer for empty texture addresses (#5893)
This commit is contained in:
parent
60d1def6f8
commit
2670b951e1
@ -323,7 +323,10 @@ static void ProcessTriangleInternal(const Vertex& v0, const Vertex& v1, const Ve
|
|||||||
if (!texture.enabled)
|
if (!texture.enabled)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
DEBUG_ASSERT(0 != texture.config.address);
|
if (texture.config.address == 0) {
|
||||||
|
texture_color[i] = {0, 0, 0, 255};
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
int coordinate_i =
|
int coordinate_i =
|
||||||
(i == 2 && regs.texturing.main_config.texture2_use_coord1) ? 1 : i;
|
(i == 2 && regs.texturing.main_config.texture2_use_coord1) ? 1 : i;
|
||||||
|
Loading…
Reference in New Issue
Block a user