mirror of
https://github.com/Kiritow/OpenComputerScripts.git
synced 2024-03-22 13:10:46 +08:00
fix libgpu
This commit is contained in:
parent
eef9568ec3
commit
e5b73a782f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user