am 24b62d0: Merge change 462 into donut

Merge commit '24b62d0c41cf37ade751fe96a4888fbe7f61eb5a'

* commit '24b62d0c41cf37ade751fe96a4888fbe7f61eb5a':
  integrate some OpenGL ES changes back from master_gl in preparation of opening GLES to the NDK.