Workaround for Virtua Tennis ball color problem.
There's a texture corruption of the tennis ball and other textures, notably the players' bags in the first intro sequence. The corruption is due to render to texture squashing existing textures. Not sure what's going on but this avoids the texture corruption. The original problem remains.
This commit is contained in:
parent
2fdcf0d821
commit
3256e02813
|
@ -489,7 +489,7 @@ void ReadRTTBuffer() {
|
|||
|
||||
glPixelStorei(GL_PACK_ALIGNMENT, 1);
|
||||
u16 *src = temp_tex_buffer;
|
||||
u16 *dst = (u16 *)&vram[fb_rtt.TexAddr << 3];
|
||||
u16 *dst = (u16 *)&vram[tex_addr];
|
||||
|
||||
GLint color_fmt, color_type;
|
||||
glGetIntegerv(GL_IMPLEMENTATION_COLOR_READ_FORMAT, &color_fmt);
|
||||
|
@ -550,7 +550,7 @@ void ReadRTTBuffer() {
|
|||
}
|
||||
else
|
||||
{
|
||||
memset(&vram[fb_rtt.TexAddr << 3], '\0', size);
|
||||
//memset(&vram[fb_rtt.TexAddr << 3], '\0', size);
|
||||
}
|
||||
|
||||
//dumpRtTexture(fb_rtt.TexAddr, w, h);
|
||||
|
|
Loading…
Reference in New Issue