Fix #1419. Use memoryview instead of deprecated buffer.

This commit is contained in:
Ian Foote 2013-08-08 21:32:49 +01:00
parent 08ee6f2271
commit 8fad92087f
1 changed files with 1 additions and 1 deletions

View File

@ -404,7 +404,7 @@ cdef class Fbo(RenderContext):
self.bind()
data = py_glReadPixels(wx, wy, 1, 1, GL_RGBA, GL_UNSIGNED_BYTE)
self.release()
raw_data = str(buffer(data))
raw_data = str(memoryview(data))
return [ord(i) for i in raw_data]