Last active
June 21, 2016 22:17
-
-
Save simias/48729832e569c59ef570052f9f24c32b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/mednafen/psx/gpu_polygon.cpp b/mednafen/psx/gpu_polygon.cpp | |
index 85da0f2..16c0d17 100644 | |
--- a/mednafen/psx/gpu_polygon.cpp | |
+++ b/mednafen/psx/gpu_polygon.cpp | |
@@ -525,6 +525,18 @@ INLINE void PS_GPU::Command_DrawPolygon(const uint32_t *cb) | |
return; | |
} | |
+ vertices[0].r = 0x00; | |
+ vertices[0].g = 0xff; | |
+ vertices[0].b = 0x8f; | |
+ | |
+ vertices[1].r = 0xff; | |
+ vertices[1].g = 0x0; | |
+ vertices[1].b = 0x7f; | |
+ | |
+ vertices[2].r = 0; | |
+ vertices[2].g = 0; | |
+ vertices[2].b = 0x40; | |
+ | |
uint16_t clut_x = (clut & (0x3f << 4)); | |
uint16_t clut_y = (clut >> 10) & 0x1ff; | |
@@ -538,6 +550,8 @@ INLINE void PS_GPU::Command_DrawPolygon(const uint32_t *cb) | |
blend_mode = BLEND_MODE_ADD; | |
} | |
+ (void)blend_mode; | |
+ | |
rsx_intf_push_triangle(vertices[0].x, vertices[0].y, | |
vertices[1].x, vertices[1].y, | |
vertices[2].x, vertices[2].y, | |
@@ -549,13 +563,13 @@ INLINE void PS_GPU::Command_DrawPolygon(const uint32_t *cb) | |
vertices[2].u, vertices[2].v, | |
this->TexPageX, this->TexPageY, | |
clut_x, clut_y, | |
- blend_mode, | |
+ 0, | |
2 - TexMode_TA, | |
DitherEnabled(), | |
BlendMode); | |
if (rsx_intf_has_software_renderer()) | |
- DrawTriangle<goraud, textured, BlendMode, TexMult, TexMode_TA, MaskEval_TA>(vertices, clut); | |
+ DrawTriangle<goraud, false, BlendMode, TexMult, TexMode_TA, MaskEval_TA>(vertices, clut); | |
} | |
#undef COORD_POST_PADDING |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment