X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fnetradiant.git;a=blobdiff_plain;f=include%2Figl.h;fp=include%2Figl.h;h=7ea3b944d93d33ec27dc9e460f360d5c7786c4ca;hp=0662379e8323593c148a7f86c1fa314b4c1c17f3;hb=5473ceccf9cf7aebaa0f03c60e4b3f16182d627f;hpb=bf2ca2011e074cb236802c8767c0d38836ef2a3f diff --git a/include/igl.h b/include/igl.h index 0662379e..7ea3b944 100644 --- a/include/igl.h +++ b/include/igl.h @@ -2012,8 +2012,10 @@ struct OpenGLBinding /// \brief Renders \p character at the current raster-position of the current context. void drawChar(char character) const { - m_glListBase(m_font); - m_glCallLists(1, GL_UNSIGNED_BYTE, reinterpret_cast(&character)); + char s[2]; + s[0] = character; + s[1] = 0; + drawString(s); }