mirror of https://github.com/kivy/kivy.git
Fix #1419. Use memoryview instead of deprecated buffer.
This commit is contained in:
parent
08ee6f2271
commit
8fad92087f
|
@ -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]
|
||||
|
||||
|
|
Loading…
Reference in New Issue