Added check for support NPOT textures with OpenGL ES. Legacy mode is still bugged.