avoid segfault in gl tests