Updated GLES coded due to libgdx changes