fixes texture formats for GLES2/GLES3
Merge pull request #70 from andrewcorrigan/master

fixes texture formats for GLES2/GLES3