fix texture red support in mesa gles driver.

Mesa GLES 3.0 does not support GL_EXT_texture_rg
detect mesa opengl es
rename shaderIsBitmap() to canOptimizeForBitmapShader()