texture_cache: Use siblings textures on Rebuild and fix possible error on blitting

This commit is contained in:
Fernando Sahmkow 2019-06-13 10:39:45 -04:00 committed by ReinUsesLisp
parent 4db28f72f6
commit 3dd7643214
2 changed files with 24 additions and 11 deletions

View file

@ -522,7 +522,7 @@ void TextureCacheOpenGL::ImageBlit(View& src_view, View& dst_view,
glBlitFramebuffer(src_rect.left, src_rect.top, src_rect.right, src_rect.bottom, dst_rect.left,
dst_rect.top, dst_rect.right, dst_rect.bottom, buffers,
is_linear ? GL_LINEAR : GL_NEAREST);
is_linear && (buffers == GL_COLOR_BUFFER_BIT) ? GL_LINEAR : GL_NEAREST);
}
void TextureCacheOpenGL::BufferCopy(Surface& src_surface, Surface& dst_surface) {