mirror of
https://github.com/libretro/ppsspp.git
synced 2024-11-27 18:30:56 +00:00
Oops, the vertexdecoder should read vertex alpha.
Copy/paste mistake... ugh.
This commit is contained in:
parent
aab3bd6227
commit
ff25b9d20e
@ -1525,7 +1525,12 @@ void FramebufferManager::PackFramebufferSync_(VirtualFramebuffer *vfb) {
|
||||
(u32)bufSize, packed, fb_address);
|
||||
|
||||
glPixelStorei(GL_PACK_ALIGNMENT, 4);
|
||||
glReadPixels(0, 0, vfb->fb_stride, vfb->height, GL_RGBA, GL_UNSIGNED_BYTE, packed);
|
||||
GLenum glfmt = GL_RGBA;
|
||||
#if defined(MAY_HAVE_GLES3)
|
||||
if (UseBGRA8888())
|
||||
glfmt = GL_BGRA_EXT;
|
||||
#endif
|
||||
glReadPixels(0, 0, vfb->fb_stride, vfb->height, glfmt, GL_UNSIGNED_BYTE, packed);
|
||||
GLenum error = glGetError();
|
||||
switch(error) {
|
||||
case 0:
|
||||
|
@ -290,7 +290,7 @@ JittedVertexDecoder VertexDecoderJitCache::Compile(const VertexDecoder &dec) {
|
||||
B_CC(CC_NEQ, loopStart);
|
||||
|
||||
if (dec.col) {
|
||||
MOVP2R(tempReg1, &gstate_c.textureFullAlpha);
|
||||
MOVP2R(tempReg1, &gstate_c.vertexFullAlpha);
|
||||
CMP(fullAlphaReg, 0);
|
||||
SetCC(CC_EQ);
|
||||
STRB(fullAlphaReg, tempReg1, 0);
|
||||
|
@ -561,7 +561,7 @@ void VertexDecoderJitCache::Jit_Color8888() {
|
||||
|
||||
CMP(32, R(tempReg1), Imm32(0xFF000000));
|
||||
FixupBranch skip = J_CC(CC_GE, false);
|
||||
MOV(8, M(&gstate_c.textureFullAlpha), Imm8(0));
|
||||
MOV(8, M(&gstate_c.vertexFullAlpha), Imm8(0));
|
||||
SetJumpTarget(skip);
|
||||
}
|
||||
|
||||
@ -635,7 +635,7 @@ void VertexDecoderJitCache::Jit_Color4444() {
|
||||
|
||||
CMP(32, R(tempReg2), Imm32(0xFF000000));
|
||||
FixupBranch skip = J_CC(CC_AE, false);
|
||||
MOV(8, M(&gstate_c.textureFullAlpha), Imm8(0));
|
||||
MOV(8, M(&gstate_c.vertexFullAlpha), Imm8(0));
|
||||
SetJumpTarget(skip);
|
||||
}
|
||||
|
||||
@ -712,7 +712,7 @@ void VertexDecoderJitCache::Jit_Color5551() {
|
||||
|
||||
CMP(32, R(tempReg2), Imm32(0xFF000000));
|
||||
FixupBranch skip = J_CC(CC_AE, false);
|
||||
MOV(8, M(&gstate_c.textureFullAlpha), Imm8(0));
|
||||
MOV(8, M(&gstate_c.vertexFullAlpha), Imm8(0));
|
||||
SetJumpTarget(skip);
|
||||
}
|
||||
|
||||
@ -913,7 +913,7 @@ void VertexDecoderJitCache::Jit_WriteMorphColor(int outOff, bool checkAlpha) {
|
||||
if (checkAlpha) {
|
||||
CMP(32, R(tempReg1), Imm32(0xFF000000));
|
||||
FixupBranch skip = J_CC(CC_AE, false);
|
||||
MOV(8, M(&gstate_c.textureFullAlpha), Imm8(0));
|
||||
MOV(8, M(&gstate_c.vertexFullAlpha), Imm8(0));
|
||||
SetJumpTarget(skip);
|
||||
} else {
|
||||
// Force alpha to full if we're not checking it.
|
||||
|
Loading…
Reference in New Issue
Block a user