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:
Flyinghead 2018-06-25 15:48:57 +02:00
parent 2fdcf0d821
commit 3256e02813
1 changed files with 2 additions and 2 deletions

View File

@ -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);