fix to satisfy compiler
bug fix in supporting BGRA in glTexSubImage2D and glTexImage2D