mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-28 16:53:40 +01:00
Fix vertexdecoder RGB565 bug found by unknownbrackets, also remove FP use in RGBA5551
This commit is contained in:
1 parent
adb39a66c9
commit
5828fe5728
1 file changed
+2
-2
@@ -187,7 +187,7 @@ void VertexDecoder::Step_Color565() const
|
||||
c[0] = Convert5To8(cdata & 0x1f);
|
||||
c[1] = Convert6To8((cdata>>5) & 0x3f);
|
||||
c[2] = Convert5To8((cdata>>11) & 0x1f);
|
||||
c[3] = 1.0f;
|
||||
c[3] = 255;
|
||||
}
|
||||
|
||||
void VertexDecoder::Step_Color5551() const
|
||||
@@ -197,7 +197,7 @@ void VertexDecoder::Step_Color5551() const
|
||||
c[0] = Convert5To8(cdata & 0x1f);
|
||||
c[1] = Convert5To8((cdata>>5) & 0x1f);
|
||||
c[2] = Convert5To8((cdata>>10) & 0x1f);
|
||||
c[3] = (cdata>>15) ? 255.0f : 0.0f;
|
||||
c[3] = (cdata >> 15) ? 255 : 0;
|
||||
}
|
||||
|
||||
void VertexDecoder::Step_Color4444() const
|
||||
|
||||
Reference in new issue
Block a user