Fixed font rendering and invalid flags to texture creation.