Fix #1419. Use memoryview instead of deprecated buffer.
Merge pull request #1422 from Ian-Foote/fbo_buffer_fix

Fix #1419. Use memoryview instead of deprecated buffer.