[GEM-cvs] Gem/src/openGL GEMglGetString.cpp,1.1,1.2
Brought to you by:
zmoelnig
From: IOhannes m z. <zmo...@us...> - 2005-02-07 15:56:51
|
Update of /cvsroot/pd-gem/Gem/src/openGL In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13634 Modified Files: GEMglGetString.cpp Log Message: fixed bug that crashed pd when NULL was returned by glGetString() Index: GEMglGetString.cpp =================================================================== RCS file: /cvsroot/pd-gem/Gem/src/openGL/GEMglGetString.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** GEMglGetString.cpp 3 Feb 2003 16:29:44 -0000 1.1 --- GEMglGetString.cpp 7 Feb 2005 15:56:42 -0000 1.2 *************** *** 42,46 **** void GEMglGetString :: render(GemState *state) { const GLubyte* test=glGetString (name); ! outlet_symbol(m_outlet, gensym((char*)test)); } --- 42,46 ---- void GEMglGetString :: render(GemState *state) { const GLubyte* test=glGetString (name); ! if(test!=NULL)outlet_symbol(m_outlet, gensym((char*)test)); } |