mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Fix vertexdecoder RGB565 bug found by unknownbrackets, also remove FP use in RGBA5551
This commit is contained in:
parent
adb39a66c9
commit
5828fe5728
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue