- Removed a unsigned comparison warning
- Fixed a big in surfaces causing buffers to be swapped twice