[GEM-cvs] Gem/src/Pixes pix_coordinate.cpp,1.2,1.3
Brought to you by:
zmoelnig
From: christopher c. <ccl...@us...> - 2005-04-24 21:59:25
|
Update of /cvsroot/pd-gem/Gem/src/Pixes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13771 Modified Files: pix_coordinate.cpp Log Message: added check for state->texture and that actual coordinates exist in the render method Index: pix_coordinate.cpp =================================================================== RCS file: /cvsroot/pd-gem/Gem/src/Pixes/pix_coordinate.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** pix_coordinate.cpp 22 Jul 2003 18:04:12 -0000 1.2 --- pix_coordinate.cpp 24 Apr 2005 21:59:17 -0000 1.3 *************** *** 51,56 **** void pix_coordinate :: render(GemState *state) { ! state->numTexCoords = m_numCoords; ! state->texCoords = m_coords; } --- 51,58 ---- void pix_coordinate :: render(GemState *state) { ! if (state->texture && m_numCoords){ ! state->numTexCoords = m_numCoords; ! state->texCoords = m_coords; ! } } |