From e5b73a782fedb2790186262d3acfba25f2c1dc0e Mon Sep 17 00:00:00 2001 From: Kiritow <1362050620@qq.com> Date: Tue, 26 Jun 2018 00:15:05 +0800 Subject: [PATCH] fix libgpu --- libgpu.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libgpu.lua b/libgpu.lua index f336849..3c5e200 100644 --- a/libgpu.lua +++ b/libgpu.lua @@ -58,11 +58,11 @@ end -- API function GetGPU() - if(component.gpu==nil) then + if(component.list("gpu")==nil) then error("No GPU Found.") else local t={} - t.gpu=component.gpu + t.gpu=component.proxy(component.list("gpu")()) t.clear=GPUClear t.set=GPUSet t.get=GPUGet