Original Post
I use glTexSubImage2D to render characters of a font to a texture when needed. This works almost everywhere, but on some computers, the font just disappears after a while. This is what seems to happen on those computers:
-initial characters are rendered to font using glTexSubImage2D
-font looks good in the game during gameplay and such
-game requests additional characters and these are rendered to the texture
-font entirely disappears in the game
This suggests that the problem may have something to do with the previously rendered frame. Or it may be accidental and may in fact be caused by the phase of the moon.
I am kind of stuck with this, especially since it only fails on some rare computers, so I am hoping somewhere here can help me find the problem.
I'll post the related code below.
Thanks in advance! :)
-initial characters are rendered to font using glTexSubImage2D
-font looks good in the game during gameplay and such
-game requests additional characters and these are rendered to the texture
-font entirely disappears in the game
This suggests that the problem may have something to do with the previously rendered frame. Or it may be accidental and may in fact be caused by the phase of the moon.
I am kind of stuck with this, especially since it only fails on some rare computers, so I am hoping somewhere here can help me find the problem.
I'll post the related code below.
Thanks in advance! :)