[GEM-cvs] Gem/src/Controls gemhead.cpp,1.9,1.10
Brought to you by:
zmoelnig
From: IOhannes m z. <zmo...@us...> - 2006-07-27 15:59:52
|
Update of /cvsroot/pd-gem/Gem/src/Controls In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1290 Modified Files: gemhead.cpp Log Message: use GemState->reset() instead of resetting things manually Index: gemhead.cpp =================================================================== RCS file: /cvsroot/pd-gem/Gem/src/Controls/gemhead.cpp,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** gemhead.cpp 12 Jul 2006 02:58:11 -0000 1.9 --- gemhead.cpp 27 Jul 2006 15:59:29 -0000 1.10 *************** *** 88,107 **** if(state) { ! // set the state dirty flag ! state->dirty = m_cache->dirty; ! ! // clear the state->image (might be still there from previous [gemhead]s) ! state->image = 0; ! state->VertexDirty=m_cache->vertexDirty; ! state->VertexArray = 0; ! state->VertexArraySize = 0; ! state->ColorArray = 0; ! state->NormalArray = 0; ! state->TexCoordArray = 0; ! state->HaveColorArray = 0; ! state->HaveNormalArray = 0; ! state->HaveTexCoordArray = 0; ! state->drawType = 0; } --- 88,96 ---- if(state) { ! state->reset(); ! // set the state dirty flag ! state->dirty = m_cache->dirty; ! state->VertexDirty=m_cache->vertexDirty; } |