<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Program stops at GX_DrawDone();</title>
<description> Hi guys :)

I&amp;#039;m having a problem with GX_DrawDone(), when my program is at this instruction, it crashes (no Core Dump, just screen freeze)...
And it occurs when I load or draw a texture because with a simple code it works great (i.e. I can return to HBC when I hold A).

So, that&amp;#039;s my code :
[pastebin.com] &amp;lt;- a part of my lib (.h and .c mixed for that post)
[pastebin.com] &amp;lt;- the program

Problem : Screen freezes at GX_DrawDone(); (line 158)

Thank you for helping me =)</description><link>http://forum.wiibrew.org/read.php?11,2463,2463#msg-2463</link><lastBuildDate>Sat, 11 Jul 2026 22:31:24 +0200</lastBuildDate>
<generator>Phorum 5.2.23</generator>
<item>
<guid>http://forum.wiibrew.org/read.php?11,2463,2473#msg-2473</guid>
<title>Re: Program stops at GX_DrawDone();</title><link>http://forum.wiibrew.org/read.php?11,2463,2473#msg-2473</link><description><![CDATA[ So, I changed the function ML_DrawSprite and some things (u8 alpha etc).<br />[<a href="http://pastebin.com/db050fbd" rel="nofollow">pastebin.com</a>]<br /><br />If I understood well, I have to load the projection matrix after, but what is it ? ^^"<br />Like something like that : "GX_LoadPosMtxImm(mtx, GX_PNMTX0);" ? Or ?<br /><br />EDIT : I tested and it&#039;s not stopping at GX_DrawDone() anymore but nothing is drawing x_X]]></description>
<dc:creator>Minishlink</dc:creator>
<category>Coding</category><pubDate>Fri, 10 Oct 2008 18:37:40 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,2463,2467#msg-2467</guid>
<title>Re: Program stops at GX_DrawDone();</title><link>http://forum.wiibrew.org/read.php?11,2463,2467#msg-2467</link><description><![CDATA[ Yes, there&#039;s usually functions for that kind of thing across drawing objects like textures, particles etc.]]></description>
<dc:creator>WiiPhlex</dc:creator>
<category>Coding</category><pubDate>Fri, 10 Oct 2008 12:21:05 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,2463,2466#msg-2466</guid>
<title>Re: Program stops at GX_DrawDone();</title><link>http://forum.wiibrew.org/read.php?11,2463,2466#msg-2466</link><description><![CDATA[ <b>shagkur from EFNet says:</b><br />There&#039;re 2 important mistakes:<br />1) missing to load the projection matrix, which is essential for the system.<br />2) defining the vertex color attribute along with setting it in VtxDesc as direct data, but in the mesh drawing routine he doesn&#039;t set the vertex color.<br /><br />GX most often ends up in freeze if certain data is missing.]]></description>
<dc:creator>teknecal</dc:creator>
<category>Coding</category><pubDate>Fri, 10 Oct 2008 12:20:51 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,2463,2465#msg-2465</guid>
<title>Re: Program stops at GX_DrawDone();</title><link>http://forum.wiibrew.org/read.php?11,2463,2465#msg-2465</link><description><![CDATA[ The array is just for testing ;)<br /><br />"don&#039;t you need to start the scene rendering then finish?" Hum, like GX_Begin and GX_End ?]]></description>
<dc:creator>Minishlink</dc:creator>
<category>Coding</category><pubDate>Fri, 10 Oct 2008 12:07:13 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,2463,2464#msg-2464</guid>
<title>Re: Program stops at GX_DrawDone();</title><link>http://forum.wiibrew.org/read.php?11,2463,2464#msg-2464</link><description><![CDATA[ This isn&#039;t really answering your question, but you declared an array with 1024 sprite objects? May I ask why?<br /><br />Edit: just had a proper look, don&#039;t you need to start the scene rendering then finish? I haven&#039;t used GX, but all of the other graphics API&#039;s I&#039;ve used (including OpenGL which this is based on) require some form of function like d3dDevice-&gt;StartRender() then all the render code then EndRender(), StopRender or something to that effect.]]></description>
<dc:creator>WiiPhlex</dc:creator>
<category>Coding</category><pubDate>Fri, 10 Oct 2008 12:00:51 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,2463,2463#msg-2463</guid>
<title>Program stops at GX_DrawDone();</title><link>http://forum.wiibrew.org/read.php?11,2463,2463#msg-2463</link><description><![CDATA[ Hi guys :)<br /><br />I&#039;m having a problem with GX_DrawDone(), when my program is at this instruction, it crashes (no Core Dump, just screen freeze)...<br />And it occurs when I load or draw a texture because with a simple code it works great (i.e. I can return to HBC when I hold A).<br /><br />So, that&#039;s my code :<br />[<a href="http://pastebin.com/m14192ee" rel="nofollow">pastebin.com</a>] &lt;- a part of my lib (.h and .c mixed for that post)<br />[<a href="http://pastebin.com/m7b5442b5" rel="nofollow">pastebin.com</a>] &lt;- the program<br /><br /><u>Problem</u> : Screen freezes at GX_DrawDone(); (line 158)<br /><br />Thank you for helping me =)]]></description>
<dc:creator>Minishlink</dc:creator>
<category>Coding</category><pubDate>Fri, 10 Oct 2008 11:46:43 +0200</pubDate></item>
</channel>
</rss>