We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 289c592 commit 7935e91Copy full SHA for 7935e91
1 file changed
module/device/method/ldopengl.py
@@ -247,7 +247,7 @@ def screenshot(self):
247
248
img = ctypes.cast(img_ptr, ctypes.POINTER(ctypes.c_ubyte * (height * width * 3))).contents
249
250
- image = np.ctypeslib.as_array(img).reshape((height, width, 3))
+ image = np.ctypeslib.as_array(img).copy().reshape((height, width, 3))
251
return image
252
253
@staticmethod
0 commit comments