fix for [1969185] valgrind errors in new gl stuff
2 files changed