Partial success on predicated tiling (depth buffer still bad).

This commit is contained in:
Ben Vanik
2015-03-21 22:32:23 -07:00
parent 7c3225ee41
commit fa58eaa317
4 changed files with 77 additions and 50 deletions

View File

@@ -229,7 +229,7 @@ void Blitter::Draw(GLuint src_texture, Rect2D src_rect, Rect2D dest_rect,
break;
}
glViewport(0, 0, dest_rect.width, dest_rect.height);
glViewport(dest_rect.x, dest_rect.y, dest_rect.width, dest_rect.height);
// TODO(benvanik): avoid this?
GLint src_texture_width;