Reputation: 4372
I am working with a piece of code which was rendering a texture containing text written using Pango, in a particular GL viewport. I have now had to change the viewport, and put the texture at a different z-distance, however, the text has become blurry. I have tried changing the font size, style, etc., but no success.
I am new to Pango, and this is a rather generic question, but any pointers to what could be the reason will be helpful.
Upvotes: 0
Views: 190
Reputation: 17278
Could it be mipmapping is kicking in because of the larger z-distance? Could you try to apply
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
to the texture you are rendering the text in?
Upvotes: 1