<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Allegro 4.2.1 &amp; AllegroGL 0.4.0RC7 bugs</title>
		<link>http://www.allegro.cc/forums/view/588830</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Mon, 04 Dec 2006 14:53:44 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I&#39;ve updated my Allegro and AllegroGL (Win32 only, tomorrow I&#39;ll update my Kubuntu). They works nice, specially AllegroGL because the prior version (CVS) didn&#39;t work with my Intel GFX, the new version works without <i>big</i> problems, but I find two bugs:</p><p><b>Allegro:</b> The square root doesn&#39;t works well. In the math test I tried &quot;49 [sqrt]&quot; and it doesn&#39;t return <i>exactly</i> 7 (7 * 7 = 49, so sqrt (49) = 7). I don&#39;t remember what it returned before the update.<br /><b>AllegroGL:</b> fonttest.c doesn&#39;t work. No error message, no window, no output, no nothing, just do nothing...</p><p>My System is Pentium 4, Windows XP SP2, MinGW32 5.0, MSys 1.0, Graphics Intel i810, Allegro 4.2.1, AllegroGL 0.4.0 RC7
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Niunio)</author>
		<pubDate>Fri, 01 Dec 2006 15:33:19 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I&#39;ll put my previous post into this thread instead: </p><p>AllegroGL: I have just recompiled the released version of allegrogl on my PC here, and dumbtest crashes again. The PC has an Intel Graphics chipset, and we had this problem discussed some time ago, a few weeks I think. There was a fix, and I thought it should have been in the SVN, but now I see that seemingly that fix got lost somewhere? Please check! I have double checked that my local files are identical to those from the released version. Ah, btw, dumbtest crashes in line 52, because in line 51 the allocation of a video bitmap of dimension 50x50 failed, but the resulting pointer isn&#39;t checked to be non 0. </p><p>About fonttest: This is due to a broken a32.tga file. I&#39;m not sure if the reason os known, but it was something about SVN and Windows or so...
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (tobing)</author>
		<pubDate>Fri, 01 Dec 2006 15:51:04 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Do the other AllegroGL examples work?</p><p>If you have the time, you could compile in debug mode (make DEBUGMODE=2 LOGLEVEL=2; make install DEBUGMODE=2 LOGLEVEL=2), and AllegroGL will write down everything it does in the file allegro.log. But maybe it&#39;s related to tobing&#39;s problem in the other thread, since you both have an Intel card.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Elias)</author>
		<pubDate>Fri, 01 Dec 2006 15:59:49 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>The other examples work for me. The point is, there has been a fix for this around... </p><p>Found the thread: <a href="http://www.allegro.cc/forums/thread/588077">http://www.allegro.cc/forums/thread/588077</a>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (tobing)</author>
		<pubDate>Fri, 01 Dec 2006 16:10:58 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">tobing said:</div><div class="quote"><p>
AllegroGL: I have just recompiled the released version of allegrogl on my PC here, and dumbtest crashes again. The PC has an Intel Graphics chipset, and we had this problem discussed some time ago, a few weeks I think. There was a fix, and I thought it should have been in the SVN, but now I see that seemingly that fix got lost somewhere? Please check!
</p></div></div><p>

It has to crash because your GFX cars doesn&#39;t support either ARB_npot or ARB_texture_rectangle OGL extensions. The fix you are probably referring to was for your other card, X850Pro. I proposed the patch on the ML, Bob was against it, so it was left unapplied. <a href="http://sourceforge.net/mailarchive/message.php?msg_id=37179899">http://sourceforge.net/mailarchive/message.php?msg_id=37179899</a><br />It&#39;s not a big deal though, dumbtest should be rewritten properly to handle such situations.</p><div class="quote_container"><div class="title">Niunio said:</div><div class="quote"><p>
fonttest.c doesn&#39;t work. No error message, no window, no output, no nothing, just do nothing...
</p></div></div><p>

I remember it crashing when my desktop color depth was 16-bit depth. set_gfx_mode failed or something... Can you try it in 32-bit?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Milan Mimica)</author>
		<pubDate>Fri, 01 Dec 2006 18:25:37 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I see, thanks. </p><p>I have tried fonttest with 32bit resolution, but the point was that the file a32.tga is somehow damaged. Never got a proper version of that file, even not when I accessed the SVN depot using the web interface. Strange. </p><p>Here&#39;s the posting I&#39;m refering to: <br /><a href="http://www.allegro.cc/forums/thread/588077/622392#target">http://www.allegro.cc/forums/thread/588077/622392#target</a>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (tobing)</author>
		<pubDate>Fri, 01 Dec 2006 18:43:06 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>What would be a fix for dumbtest? Recreate the bitmap as 64x64 if NULL is returned?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Elias)</author>
		<pubDate>Fri, 01 Dec 2006 18:43:37 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>or just create it as 64x64 instead.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (tobing)</author>
		<pubDate>Fri, 01 Dec 2006 18:44:20 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>There is no point creating a 64x64 bitmap. dumbtest is used to test the capabilities of gfx card and the AGL ability to use this capabilities. The returned bitmap pointer should be tested all over the code and display &quot;unsupported&quot; where the image should be.</p><p>edit:<br />a32.tga is damaged in RC7?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Milan Mimica)</author>
		<pubDate>Fri, 01 Dec 2006 19:06:20 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>OK, I&#39;ll wait for the corrected dumbtest.c in SVN then. </p><p>Just checked: The a32.tga file in the distribution is identical to the one I have retrieved from SVN. Size is 9984 bytes, if that helps...
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (tobing)</author>
		<pubDate>Fri, 01 Dec 2006 19:12:16 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Can&#39;t you open it in a image viewer/editor and see if it&#39;s corrupted or not?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Milan Mimica)</author>
		<pubDate>Fri, 01 Dec 2006 19:15:07 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I can do that when I&#39;m back home. I don&#39;t have a viewer at work that can display tga-files, but I remember that I have once opened the file with IrfanView, and only saw the letter a in that file...
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (tobing)</author>
		<pubDate>Fri, 01 Dec 2006 19:18:28 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>It&#39;s supposed to contain only the letter A <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Elias)</author>
		<pubDate>Fri, 01 Dec 2006 19:27:29 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Aha, so why does it not load then? Now I&#39;m a little confused...
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (tobing)</author>
		<pubDate>Fri, 01 Dec 2006 19:56:26 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>set_color_depth(32); in fonttest.c is wrong. set_gfx_mode will fail if desktop color depth is other than 32, because can&#39;t change that in windowed mode.<br />Should be:<br />allegro_gl_set(AGL_COLOR_DEPTH, 32);<br />allegro_gl_set(AGL_SUGGEST, AGL_COLOR_DEPTH);<br />... which should be fine but I don&#39;t feel like restarting my X server now to test it.</p><p>And fonttest doesn&#39;t display correctly in 16-bit mode. 32-bit ALPHA, LUMINANCE and INTENSITY are not displayed.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Milan Mimica)</author>
		<pubDate>Fri, 01 Dec 2006 20:05:34 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>It doesn&#39;t help: I&#39;ve replaced set_color_depth(32); by the two lines you suggested, but the crash remains the same. Happens in allegro, file fontbmp.c, line 263, when it tries <br /><span class="source-code">f-&gt;height <span class="k3">=</span> cf-&gt;bitmaps<span class="k2">[</span><span class="n">0</span><span class="k2">]</span><span class="k3">-</span><span class="k3">&gt;</span>h<span class="k2">;</span></span> <br />but cf-&gt;bitmaps[0] does not point to valid memory. </p><p>Desktop resolution is 32 bit, and everything was built from scratch and as debug version, too.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (tobing)</author>
		<pubDate>Fri, 01 Dec 2006 20:17:01 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Just to make sure, are you using Allegro 4.2.1?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Elias)</author>
		<pubDate>Fri, 01 Dec 2006 20:30:56 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>No, I&#39;m using 4.2.0, didn&#39;t have much time to upgrade to 4.2.1 yet. Is there a fix which could affect that behavior in 4.2.1?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (tobing)</author>
		<pubDate>Fri, 01 Dec 2006 20:33:44 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Yes. The anti aliased fonts require Allegro 4.2.1. In general, I see AllegroGL 0.4.0 depending on Allegro 4.2.1 - that&#39;s also why I wanted to wait with the release after 4.2.1 comes out.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Elias)</author>
		<pubDate>Fri, 01 Dec 2006 20:41:02 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Just unpacked the all421.zip file and started to compile. </p><p>First, fix msvc7 --msvcpaths <br />OK. </p><p>Then, make. <br />Compilation fails, complains saying <br />Error, could not find &#39;.rsp&#39; in _tmpfile.arg. </p><p>What&#39;s going wrong here? I&#39;m using MSVC 7.1 and MinGW is also installed... </p><p>Edit: Seems that the compiler installation is different from what would be needed to build allegro. No idea what&#39;s wrong though, I&#39;ll try again at home. </p><p>Edit again: At home now, allegro 4.2.1 compiled, dumbtest OK, fonttest OK. Great! <br />Thanks for all your replies and help!
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (tobing)</author>
		<pubDate>Fri, 01 Dec 2006 21:08:48 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
There is no point creating a 64x64 bitmap. dumbtest is used to test the capabilities of gfx card and the AGL ability to use this capabilities. The returned bitmap pointer should be tested all over the code and display &quot;unsupported&quot; where the image should be.
</p></div></div><p>
I disagree: AGL should support all video bitmap sizes that we can.</p><p>I think this is a bug I accidentally added with revision 1016. Before that, AGL did support NPOT video bitmaps on GPUs that don&#39;t support NPOTs.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Bob)</author>
		<pubDate>Sat, 02 Dec 2006 11:10:54 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
I disagree: AGL should support all video bitmap sizes that we can.
</p></div></div><p>
But it can&#39;t. His card doesn&#39;t support either ARB_npot or ARB_texture_rectangle.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Milan Mimica)</author>
		<pubDate>Sat, 02 Dec 2006 18:27:37 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I think, this was solved by scaling the image to the next power of two, and using a PO T texture.</p><p>Of course, I doubt that usually can be a good idea.. what might work though is, combine multiple POT textures into a single video bitmap, I think AllegroGL already can do that. Not that I know the code well enough to implement/fix it.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Elias)</author>
		<pubDate>Sat, 02 Dec 2006 18:42:41 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
what might work though is, combine multiple POT textures into a single video bitmap, I think AllegroGL already can do that.
</p></div></div><p>
This is what used to work (and probabaly still does).
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Bob)</author>
		<pubDate>Sat, 02 Dec 2006 22:54:21 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
I think, this was solved by scaling the image to the next power of two, and using a POT texture.
</p></div></div><p>

We do this for textures, not for bitmaps.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Milan Mimica)</author>
		<pubDate>Sat, 02 Dec 2006 23:39:25 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
We do this for textures, not for bitmaps.
</p></div></div><p>
Yeah, I realized - but the combination could work (?)
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Elias)</author>
		<pubDate>Sat, 02 Dec 2006 23:55:29 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I&#39;m late, sorry. I was out-line <img src="http://www.allegro.cc/forums/smileys/sad.gif" alt=":(" /></p><div class="quote_container"><div class="title">Milam Mimica said:</div><div class="quote"><p>
[quote Niunio]<br />fonttest.c doesn&#39;t work. No error message, no window, no output, no nothing, just do nothing...
</p></div></div><p>
I remember it crashing when my desktop color depth was 16-bit depth. set_gfx_mode failed or something... Can you try it in 32-bit?<br />&lt;/quote&gt;</p><p>I am in 32-bit yet... Anyway, I&#39;ve loaded the fonts (a1.bmp, a8.bmp, a24.tga and a32.tga) with The Gimp and I get an 64x64 bitmap. I think they are corrupt or so... I&#39;ve attached the bitmaps I have.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Niunio)</author>
		<pubDate>Mon, 04 Dec 2006 02:40:43 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Just found a minor bug in the documentation:<br />(a /* turned the wrong direction in the example)</p><p><a href="http://www.allegro.cc/manual/api/bitmap-objects/create_bitmap_ex">http://www.allegro.cc/manual/api/bitmap-objects/create_bitmap_ex</a></p><p>its the same in the tar.gz package at least, but not at all equally visible, due to syntax highlighting. Typically, right after release of 4.2.1... <img src="http://www.allegro.cc/forums/smileys/sad.gif" alt=":(" /></p><p>(I tried to mail [AD], but didn&#39;t manage to do it for some reason, so I report it here instead.)
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (bhagabhi)</author>
		<pubDate>Mon, 04 Dec 2006 02:45:18 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Niunio: Are the other bitmaps (e.g. mysha.pcx) ok? I remember something about mysha.pcx getting corrupted by something in the past.. can&#39;t remember what though. You can always get the correct pictures here btw: <a href="http://allegrogl.svn.sourceforge.net/viewvc/allegrogl/trunk/examp/">http://allegrogl.svn.sourceforge.net/viewvc/allegrogl/trunk/examp/</a></p><p>If I unpack the .tar.bz2 here, it has the correct files as well.. so not sure what&#39;s going on. Do .tar.bz2 archives have line-ending conversion markers or something?</p><p>bhagabhi: thanks, fixed in SVN
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Elias)</author>
		<pubDate>Mon, 04 Dec 2006 02:57:08 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>You&#39;re right. mysha.pcx was corrupted. I&#39;ve downloaded the bitmaps from the link you put and it worked.</p><p>You should fix this in the nex releases.</p><p>Thanks.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Niunio)</author>
		<pubDate>Mon, 04 Dec 2006 03:06:08 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Which package did you download exactly: zip, tgz or bz2? Or it was SVN?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Milan Mimica)</author>
		<pubDate>Mon, 04 Dec 2006 04:51:29 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I download alleggl-0.4.0_rc7.tar.bz2
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Niunio)</author>
		<pubDate>Mon, 04 Dec 2006 05:01:24 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I downloaded the same file. No corruption <img src="http://www.allegro.cc/forums/smileys/huh.gif" alt="???" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Milan Mimica)</author>
		<pubDate>Mon, 04 Dec 2006 05:38:58 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Niunio&#39;s files are missing all 0x0d (13, CR) bytes. Independent of if they are near LF bytes or not, any 0x0d in the files is gone. So it seems, somewhere along the way, a program strips all 0x0d bytes.. my guess would be whatever unzip program he is using. This would leave all text files intact, but destroy any binary files.</p><p>It still seems strange.. would be a pretty serious bug of an unzip program, so something else must be going on here, like maybe .tar.bz2 can mark files as binary or text (and the way i create them, anything is text).
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Elias)</author>
		<pubDate>Mon, 04 Dec 2006 06:00:02 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Elias said:</div><div class="quote"><p>
Niunio&#39;s files are missing all 0x0d (13, CR) bytes. Independent of if they are near LF bytes or not, any 0x0d in the files is gone. So it seems, somewhere along the way, a program strips all 0x0d bytes.. my guess would be whatever unzip program he is using. This would leave all text files intact, but destroy any binary files.
</p></div></div><p>

Maybe. I use 7-zip. I&#39;ll download the tar.gz of the final version and try it.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Niunio)</author>
		<pubDate>Mon, 04 Dec 2006 14:53:44 +0000</pubDate>
	</item>
</rss>
