fix libgpu

This commit is contained in:
Kirigaya Kazuto 2018-06-26 00:15:05 +08:00
parent eef9568ec3
commit e5b73a782f

View File

@ -58,11 +58,11 @@ end
-- API -- API
function GetGPU() function GetGPU()
if(component.gpu==nil) then if(component.list("gpu")==nil) then
error("No GPU Found.") error("No GPU Found.")
else else
local t={} local t={}
t.gpu=component.gpu t.gpu=component.proxy(component.list("gpu")())
t.clear=GPUClear t.clear=GPUClear
t.set=GPUSet t.set=GPUSet
t.get=GPUGet t.get=GPUGet