Welcome! Log In Create A New Profile

Advanced

wii crash

Posted by xyz44 
wii crash
March 29, 2009 02:43PM
hi @ all,

i have a problem, i have two versions of source, they do the same i think, but one of them run and the other crash my wii, i don't understand why,
here is the source that run fine, simple draw a triangle:
GX_Begin(GX_TRIANGLES, GX_VTXFMT0, 3);
 GX_Position3f32( (f32)m_pMS3DVertex[0].vertex[0], (f32)m_pMS3DVertex[0].vertex[1], (f32)m_pMS3DVertex[0].vertex[2]);
 GX_Position3f32( (f32)m_pMS3DVertex[1].vertex[0], (f32)m_pMS3DVertex[1].vertex[1], (f32)m_pMS3DVertex[1].vertex[2]);
 GX_Position3f32( (f32)m_pMS3DVertex[2].vertex[0], (f32)m_pMS3DVertex[2].vertex[1], (f32)m_pMS3DVertex[2].vertex[2]);
GX_End();

ok, i hope someone can help me pls :)

thx for every repley
but this source, my opinion is they do the same, crash the wii, why???????????????
GX_Begin(GX_TRIANGLES, GX_VTXFMT0, 3);
 for(v=0;v<3;v++)
  GX_Position3f32( (f32)m_pMS3DVertex[v].vertex[0], (f32)m_pMS3DVertex[v].vertex[1], (f32)m_pMS3DVertex[v].vertex[2]);
GX_End();

thx for every repley
Re: wii crash
March 29, 2009 07:03PM
This is just a guess but try putting brackets {} around the for. I know if you have in if statement the you don't need them, but for a for statement you might.
Re: wii crash
March 30, 2009 11:08AM
Actually you don't need them for a statement, but i think that GX_Position3f32 was an inline, so it may be threated as more than one statement.
Sorry, only registered users may post in this forum.

Click here to login