1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-09 18:39:04 +08:00
This commit is contained in:
GH Action - Upstream Sync 2024-09-02 15:19:46 +00:00
commit bce880f069

View File

@ -247,7 +247,7 @@ class LDOpenGLImpl:
img = ctypes.cast(img_ptr, ctypes.POINTER(ctypes.c_ubyte * (height * width * 3))).contents
image = np.ctypeslib.as_array(img).reshape((height, width, 3))
image = np.ctypeslib.as_array(img).copy().reshape((height, width, 3))
return image
@staticmethod