I couldn't override dlsym but I managed to fake the glGetProgramiv results
[libgliar] / gliar
1 #!/bin/sh
2
3 LD_PRELOAD=libgliar.so $*