Use glTexStorage*D if possible
Merge pull request #139 from tomaka/tex-storage

Use glTexStorage*D if possible