Read correct type argument

```
0: gl
1: [height, width]
2: format
3: type
```