am 0e981c83: EmuGL: Fix heap corruption

* commit '0e981c83041878e6a05b0a996879160fd0f320cf':
  EmuGL: Fix heap corruption