<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>AllegroGL help</title>
		<link>http://www.allegro.cc/forums/view/586780</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Fri, 11 Aug 2006 00:07:33 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I just recently started into allegrogl, and I&quot;m not sure what all of this means, but I know a bit of it.  This code compiles fine, but when I run it, I get the standard windows error &quot;This program has experienced an error and needs to close&quot;.  
</p><div class="source-code"><div class="toolbar"></div><div class="inner"><table width="100%"><tbody><tr><td class="number">1</td><td><span class="p">#include &lt;allegro.h&gt;</span></td></tr><tr><td class="number">2</td><td><span class="p">#include &lt;alleggl.h&gt;</span></td></tr><tr><td class="number">3</td><td>&#160;</td></tr><tr><td class="number">4</td><td><span class="k1">int</span> main<span class="k2">(</span><span class="k2">)</span> <span class="k2">{</span></td></tr><tr><td class="number">5</td><td>  </td></tr><tr><td class="number">6</td><td>  <span class="c">// Init Allegro and AllegroGL</span></td></tr><tr><td class="number">7</td><td>  <a href="http://www.allegro.cc/manual/allegro_init" target="_blank"><span class="a">allegro_init</span></a><span class="k2">(</span><span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">8</td><td>  install_allegro_gl<span class="k2">(</span><span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">9</td><td>  </td></tr><tr><td class="number">10</td><td>  <a href="http://www.allegro.cc/manual/install_keyboard" target="_blank"><span class="a">install_keyboard</span></a><span class="k2">(</span><span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">11</td><td>&#160;</td></tr><tr><td class="number">12</td><td>  allegro_gl_set<span class="k2">(</span>AGL_Z_DEPTH, <span class="n">8</span><span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">13</td><td>  allegro_gl_set<span class="k2">(</span>AGL_COLOR_DEPTH, <span class="n">16</span><span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">14</td><td>  allegro_gl_set<span class="k2">(</span>AGL_SUGGEST, AGL_Z_DEPTH <span class="k3">|</span> AGL_COLOR_DEPTH<span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">15</td><td>&#160;</td></tr><tr><td class="number">16</td><td>  <a href="http://www.allegro.cc/manual/set_gfx_mode" target="_blank"><span class="a">set_gfx_mode</span></a><span class="k2">(</span>GFX_OPENGL_WINDOWED, <span class="n">640</span>, <span class="n">480</span>, <span class="n">0</span>, <span class="n">0</span><span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">17</td><td>  </td></tr><tr><td class="number">18</td><td>  glClear<span class="k2">(</span>GL_COLOR_BUFFER_BIT <span class="k3">|</span> GL_DEPTH_BUFFER_BIT<span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">19</td><td>&#160;</td></tr><tr><td class="number">20</td><td>  glMatrixMode<span class="k2">(</span>GL_MODELVIEW<span class="k2">)</span><span class="k2">;</span> <span class="c">// Select The Modelview Matrix</span></td></tr><tr><td class="number">21</td><td>  glLoadIdentity<span class="k2">(</span><span class="k2">)</span><span class="k2">;</span>  <span class="c">// Reset The Modelview Matrix</span></td></tr><tr><td class="number">22</td><td>  </td></tr><tr><td class="number">23</td><td>  glShadeModel<span class="k2">(</span>GL_SMOOTH<span class="k2">)</span><span class="k2">;</span> <span class="c">// Enables smooth shading</span></td></tr><tr><td class="number">24</td><td>  </td></tr><tr><td class="number">25</td><td>  glClearColor<span class="k2">(</span><span class="n">0</span>.<span class="n">0f</span>, <span class="n">0</span>.<span class="n">0f</span>, <span class="n">0</span>.<span class="n">0f</span>, <span class="n">0</span>.<span class="n">0f</span><span class="k2">)</span><span class="k2">;</span> <span class="c">// Clears screen to black</span></td></tr><tr><td class="number">26</td><td>  </td></tr><tr><td class="number">27</td><td>  glBegin<span class="k2">(</span>GL_TRIANGLES<span class="k2">)</span><span class="k2">;</span>  <span class="c">// Drawing Using Triangles</span></td></tr><tr><td class="number">28</td><td>    glVertex3f<span class="k2">(</span> <span class="n">0</span>.<span class="n">0f</span>, <span class="n">1</span>.<span class="n">0f</span>, <span class="n">0</span>.<span class="n">0f</span><span class="k2">)</span><span class="k2">;</span>  <span class="c">// Top</span></td></tr><tr><td class="number">29</td><td>    glVertex3f<span class="k2">(</span><span class="k3">-</span><span class="n">1</span>.<span class="n">0f</span>,<span class="k3">-</span><span class="n">1</span>.<span class="n">0f</span>, <span class="n">0</span>.<span class="n">0f</span><span class="k2">)</span><span class="k2">;</span>  <span class="c">// Bottom Left</span></td></tr><tr><td class="number">30</td><td>    glVertex3f<span class="k2">(</span> <span class="n">1</span>.<span class="n">0f</span>,<span class="k3">-</span><span class="n">1</span>.<span class="n">0f</span>, <span class="n">0</span>.<span class="n">0f</span><span class="k2">)</span><span class="k2">;</span>  <span class="c">// Bottom Right</span></td></tr><tr><td class="number">31</td><td>  glEnd<span class="k2">(</span><span class="k2">)</span><span class="k2">;</span>  <span class="c">// Finished Drawing The Triangle</span></td></tr><tr><td class="number">32</td><td>  </td></tr><tr><td class="number">33</td><td>  glTranslatef<span class="k2">(</span><span class="n">3</span>.<span class="n">0f</span>,<span class="n">0</span>.<span class="n">0f</span>,<span class="n">0</span>.<span class="n">0f</span><span class="k2">)</span><span class="k2">;</span>  <span class="c">// Move Right 3 Units</span></td></tr><tr><td class="number">34</td><td>  </td></tr><tr><td class="number">35</td><td>  glBegin<span class="k2">(</span>GL_QUADS<span class="k2">)</span><span class="k2">;</span>  <span class="c">// Draw A Quad</span></td></tr><tr><td class="number">36</td><td>    glVertex3f<span class="k2">(</span><span class="k3">-</span><span class="n">1</span>.<span class="n">0f</span>, <span class="n">1</span>.<span class="n">0f</span>, <span class="n">0</span>.<span class="n">0f</span><span class="k2">)</span><span class="k2">;</span>  <span class="c">// Top Left</span></td></tr><tr><td class="number">37</td><td>    glVertex3f<span class="k2">(</span> <span class="n">1</span>.<span class="n">0f</span>, <span class="n">1</span>.<span class="n">0f</span>, <span class="n">0</span>.<span class="n">0f</span><span class="k2">)</span><span class="k2">;</span> <span class="c">// Top Right</span></td></tr><tr><td class="number">38</td><td>    glVertex3f<span class="k2">(</span> <span class="n">1</span>.<span class="n">0f</span>,<span class="k3">-</span><span class="n">1</span>.<span class="n">0f</span>, <span class="n">0</span>.<span class="n">0f</span><span class="k2">)</span><span class="k2">;</span>  <span class="c">// Bottom Right</span></td></tr><tr><td class="number">39</td><td>    glVertex3f<span class="k2">(</span><span class="k3">-</span><span class="n">1</span>.<span class="n">0f</span>,<span class="k3">-</span><span class="n">1</span>.<span class="n">0f</span>, <span class="n">0</span>.<span class="n">0f</span><span class="k2">)</span><span class="k2">;</span>  <span class="c">// Bottom Left</span></td></tr><tr><td class="number">40</td><td>  glEnd<span class="k2">(</span><span class="k2">)</span><span class="k2">;</span>  <span class="c">// Done Drawing The Quad</span></td></tr><tr><td class="number">41</td><td>  </td></tr><tr><td class="number">42</td><td>  <a href="http://www.allegro.cc/manual/readkey" target="_blank"><span class="a">readkey</span></a><span class="k2">(</span><span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">43</td><td>  </td></tr><tr><td class="number">44</td><td>  <span class="k1">return</span> <span class="n">0</span><span class="k2">;</span></td></tr><tr><td class="number">45</td><td><span class="k2">}</span></td></tr><tr><td class="number">46</td><td><a href="http://www.allegro.cc/manual/END_OF_MAIN" target="_blank"><span class="a">END_OF_MAIN</span></a><span class="k2">(</span><span class="k2">)</span><span class="k2">;</span></td></tr></tbody></table></div></div><p>
I remember openlayer not working for my computer, so I don&#39;t think allegrogl does either.  OpenGL does work as far as I know because I&#39;ve played games with OpenGL only.  I dunno what&#39;s going on.  Any help would be pretty awesome right now.  Thanks a lot.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Paladin)</author>
		<pubDate>Tue, 01 Aug 2006 06:07:41 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Where&#39;s all your error checking code? Unless you know precisely what you&#39;re doing, and sometimes even then, if something can fail, make sure it doesn&#39;t.</p><p>And you also need <tt>allegro_gl_flip();</tt> before <tt>readkey();</tt>.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Kitty Cat)</author>
		<pubDate>Tue, 01 Aug 2006 06:49:07 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Tell us the AGL version, and yes, check for return values.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Milan Mimica)</author>
		<pubDate>Tue, 01 Aug 2006 15:34:13 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Allegro version is needed too. Thanks.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (GullRaDriel)</author>
		<pubDate>Tue, 01 Aug 2006 17:09:25 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Ok well I&#39;m using allegro 4.2 (Should I be using 4.3 now?  I thought it still had bugs) and I put in some checks and I checked for the return values of install_keyboard and set_gfx_mode.  Basically I have an allegro_message after a couple of actions.  So it installs allegro and allegrogl, installs the keyboard, suggests the graphics mode, but once I actually get to set_gfx_mode, it crashes.  </p><p>EDIT:  Also, one of the main reasons I don&#39;t have a lot of checks for return values is I&#39;m not sure exactly what all returns values.  Since I&#39;ve never used AllegroGL, I still don&#39;t know what everything does, but I guess I get the general idea.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Paladin)</author>
		<pubDate>Tue, 01 Aug 2006 20:17:09 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>You just have to read Allegro &amp;&amp; AllegroGL documentations to found the return values.<br />Also tell us more about the crash.</p><p>Try to compile a debug version (link with -lallegd and (i do not remember the name) the debugged version of AllegroGL))</p><p>Do the AllegroGL examples works fine ? And Allegro ones ?</p><p>Do you have a proper driver for your GFX card ? What is your GFX card ?</p><p>EDIT:<br /><a href="http://alleg.sourceforge.net/onlinedocs/en/allegro.html">Allegro manual</a><br /><a href="http://allegrogl.sourceforge.net/index.php">AllegroGL manual</a></p><p>_
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (GullRaDriel)</author>
		<pubDate>Tue, 01 Aug 2006 20:25:05 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I&#39;m not sure where to find some allegroGL examples, but the allegro ones do.  All of Shawn Hargreaves 3d examples work, but I don&#39;t think he&#39;s using allegroGL.  Every single OpenLayer or AllegroGL game for me though seems to fail.  I&#39;m not sure how to check my drivers for my graphics card since I&#39;m not really that well-versed on the topic.  My gfx card is a piece of crap, it&#39;s an Intel Graphics Media Accelerator 900, built in with the computer.  At the moment I&#39;m trying to get a new one, but can&#39;t afford one at the moment.  Like I said in my first post, I just think that my graphics card isn&#39;t good enough to handle AllegroGL.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Paladin)</author>
		<pubDate>Tue, 01 Aug 2006 20:35:03 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>
Your gfx card can handle DirectX 3D games can&#39;t it? I&#39;m not sure if there are OpenGL drivers out there for it, but I find it hard to believe you can&#39;t do at least basic 3D gfx with it..
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Richard Phipps)</author>
		<pubDate>Tue, 01 Aug 2006 20:45:31 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Yea, neither can I.  It supports direct X games fine, and I&#39;m sure I&#39;ve even played some OpenGL games fine, I really don&#39;t know what the deal is.  I&#39;ve tried looking into it a bit further, but I don&#39;t find much unfortunately.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Paladin)</author>
		<pubDate>Tue, 01 Aug 2006 21:17:04 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>
Well, according to Wikipedia:<br /><a href="http://en.wikipedia.org/wiki/Intel_GMA">http://en.wikipedia.org/wiki/Intel_GMA</a>
</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
GMA 900</p><p>On Intel i910G, Intel i915G, Intel i915Gx chipset motherboards.</p><p>T/L support: Software based (no Hardware T&amp;L Support)</p><p>Clock speed: 333 MHz</p><p>Pixel Pipelines: 4</p><p>Pixel Fillrate: 1333 MPixel/s</p><p>Vertex Shaders: 1 (v2.0) (software)</p><p>Pixel Shaders: 4 (v2.0) (hardware)</p><p>OpenGL: Yes. v.1.4</p><p>DirectX (hardware): Yes. v.9.0
</p></div></div><p>
Notice the OpenGL 1.4 support.</p><p>Intel&#39;s page:<br /><a href="http://www.intel.com/design/graphics/gma900/">http://www.intel.com/design/graphics/gma900/</a></p><p>And details on drivers and support:<br /><a href="http://www.intel.com/support/graphics/intel915g/index.htm">http://www.intel.com/support/graphics/intel915g/index.htm</a>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Richard Phipps)</author>
		<pubDate>Tue, 01 Aug 2006 21:24:35 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Can you tell which line in your program triggers the error?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Bob)</author>
		<pubDate>Tue, 01 Aug 2006 21:33:29 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Ok well you&#39;re much better at finding things than I am Richard.  <img src="http://www.allegro.cc/forums/smileys/grin.gif" alt=";D" />  I&#39;m going to update my drivers then.  Bob, it gets as far as the set_gfx_mode(); then it crashes.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Paladin)</author>
		<pubDate>Tue, 01 Aug 2006 21:42:53 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Can you track down the crash inside of AGL? Maybe the allegro.log file contains some useful information?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Bob)</author>
		<pubDate>Tue, 01 Aug 2006 21:56:30 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I don&#39;t get an allegro.log, isn&#39;t that only with Visual-C++?  I&#39;m using Dev-C++ atm.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Paladin)</author>
		<pubDate>Tue, 01 Aug 2006 22:16:55 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>You need to build the debug version of AllegroGL and link with agld.a
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Bob)</author>
		<pubDate>Tue, 01 Aug 2006 22:44:20 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Tell us the AGL version!!!</p><p>I&#39;m guessing the error you are experiencing was fixed in the current SVN version.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Milan Mimica)</author>
		<pubDate>Tue, 01 Aug 2006 23:01:35 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Sorry I haven&#39;t replied, my internet has been down for almost 3 hours.  Internet service really sucks here.  I know this sounds stupid, but I&#39;ve looked around and I can&#39;t find what version of AllegroGL I&#39;m using.  I&#39;ll compile a debug version and post the results here later as well.  Could you tell me how to find out the version of AllegroGL I have?  Sorry, I&#39;m a bit slow.  <img src="http://www.allegro.cc/forums/smileys/undecided.gif" alt=":-/" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Paladin)</author>
		<pubDate>Wed, 02 Aug 2006 01:50:04 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p><span class="source-code"><a href="http://www.delorie.com/djgpp/doc/libc/libc_624.html" target="_blank">printf</a><span class="k2">(</span><span class="s">"%s\n"</span>, AGL_VERSION_STR<span class="k2">)</span><span class="k2">;</span></span>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Bob)</author>
		<pubDate>Wed, 02 Aug 2006 01:51:13 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>0.2.5 CVL is the version I have.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Paladin)</author>
		<pubDate>Wed, 02 Aug 2006 01:59:50 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>old</p><p><b>edit:</b><br />try this <a href="http://allegrogl.sf.net/alleggl-svn-01082006.zip">http://allegrogl.sf.net/alleggl-svn-01082006.zip</a>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Milan Mimica)</author>
		<pubDate>Wed, 02 Aug 2006 02:26:55 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I feel incredibly stupid.  I have no clue how to compile AllegroGL so I can use it for dev C++.  I looked around, but I can&#39;t find anything.  Can you help me with this?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Paladin)</author>
		<pubDate>Wed, 02 Aug 2006 03:25:34 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
Should I be using 4.3 now? I thought it still had bugs
</p></div></div><p>
You absolutely shouldn&#39;t use 4.3. It&#39;s not yet suitable for normal use (just for testing).
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Evert)</author>
		<pubDate>Wed, 02 Aug 2006 03:49:37 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
I feel incredibly stupid. I have no clue how to compile AllegroGL so I can use it for dev C++. I looked around, but I can&#39;t find anything. Can you help me with this?
</p></div></div><p>
Did you read the readme files?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (miran)</author>
		<pubDate>Wed, 02 Aug 2006 10:01:45 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>
</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
Mingw/32 instructions<br />---------------------</p><p>Mingw 2.0 and higher already come with the OpenGL header files<br />and libraries, so you can skip the next step.</p><p>If you don&#39;t have the OpenGL header files (GL/gl.h) and libraries, you will<br />first need to acquire thrm. These can be obtained from the Microsoft site,<br />or from MSVC.</p><p>If you obtained the self-extracting archive from the Microsoft site, then<br />run it. Move the produced header files (*.h) into C:\Mingw32\include\GL\<br />(replace C:\Mingw32 by wherever you happen to have installed Mingw).<br />Ignore the other files, as they are only useful for MSVC.</p><p>You will need to run &#39;fix mingw32&#39; in the AllegroGL directory<br />to update makefile for Mingw32.<br />Since both Allegro and AllegroGL have native Mingw support<br />I am happy to say that you can build Allegro/AllegroGL programs<br />entirely using free software.</p><p>For an optimised build, run `make&#39; from the directory containing<br />this file.  Use `make install&#39; to install the library and header<br />file. Some versions of Mingw come with `mingw32-make&#39; instead of<br />`make&#39;, so you may need to run that instead.</p><p>For a debug build, do the same but write `DEBUGMODE=1&#39; on each<br />of the command lines; for example, &#39;make DEBUGMODE=1&#39; and<br />&#39;make install DEBUGMODE=1&#39;.
</p></div></div><p>

It worked fine for me. I had to install the lib and header files in my Dev-c directory manually, but that&#39;s to be due to a strange dev-c folder setup some years ago. The new version seems to work fine for my game and I hope that means for more people than with the old 0.2.5 version. <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Richard Phipps)</author>
		<pubDate>Wed, 02 Aug 2006 14:42:52 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Well I tried to read the readme files but they got all messed up when I unzipped them.  Sorry for not replying and seeming incredibly stupid, just internet is been very jacked up lately.  So Richard, you just took the header files and the lib files and just put them right into the folders for Dev-C++?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Paladin)</author>
		<pubDate>Wed, 02 Aug 2006 20:30:39 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>
Do it soon before this thread disappears. <img src="http://www.allegro.cc/forums/smileys/wink.gif" alt=";)" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Richard Phipps)</author>
		<pubDate>Wed, 02 Aug 2006 20:52:46 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Ok so sorry to sound stupid, but what files am I dealing with exactly?  I looked in the lib folder and all the folders are empty except for a delete.me file.  I moved the header files if I recall, but it didn&#39;t seem to do anything.  <img src="http://www.allegro.cc/forums/smileys/undecided.gif" alt=":-/" /></p><p>EDIT: Nevermind, I did a new project and it turns out I did install it.  But unfortunately it still crashes.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Paladin)</author>
		<pubDate>Wed, 02 Aug 2006 23:13:08 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>
What alegroGL version string does your project now print out?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Richard Phipps)</author>
		<pubDate>Wed, 02 Aug 2006 23:18:56 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Ok, first, let&#39;s get your AGL version as reported by AGL itself. Then, I&#39;ll have to ask you to track down where AGL crashes. There might be an AGL bug that only manifests itself on your system. Most of us don&#39;t have Intel Integrated Graphics so it&#39;s difficult to debug this issue without your help.</p><p>Thanks!
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Bob)</author>
		<pubDate>Wed, 02 Aug 2006 23:43:15 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Ok I have this code
</p><div class="source-code"><div class="toolbar"></div><div class="inner"><table width="100%"><tbody><tr><td class="number">1</td><td><span class="p">#include &lt;allegro.h&gt;</span></td></tr><tr><td class="number">2</td><td><span class="p">#include &lt;alleggl.h&gt;</span></td></tr><tr><td class="number">3</td><td>&#160;</td></tr><tr><td class="number">4</td><td><span class="k1">int</span> main<span class="k2">(</span><span class="k2">)</span> <span class="k2">{</span></td></tr><tr><td class="number">5</td><td>  </td></tr><tr><td class="number">6</td><td>  <span class="c">/* Initialize both Allegro and AllegroGL */</span></td></tr><tr><td class="number">7</td><td>  <a href="http://www.allegro.cc/manual/allegro_init" target="_blank"><span class="a">allegro_init</span></a><span class="k2">(</span><span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">8</td><td>  install_allegro_gl<span class="k2">(</span><span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">9</td><td>  </td></tr><tr><td class="number">10</td><td>  <a href="http://www.allegro.cc/manual/allegro_message" target="_blank"><span class="a">allegro_message</span></a><span class="k2">(</span><span class="s">"Installed allegro and allegro GL"</span><span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">11</td><td>  <a href="http://www.allegro.cc/manual/allegro_message" target="_blank"><span class="a">allegro_message</span></a><span class="k2">(</span><span class="s">"%s"</span>, AGL_VERSION_STR<span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">12</td><td>  </td></tr><tr><td class="number">13</td><td>  <span class="c">/* Tell Allegro we want to use the keyboard */</span></td></tr><tr><td class="number">14</td><td>  <a href="http://www.allegro.cc/manual/install_keyboard" target="_blank"><span class="a">install_keyboard</span></a><span class="k2">(</span><span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">15</td><td>&#160;</td></tr><tr><td class="number">16</td><td>        <a href="http://www.allegro.cc/manual/allegro_message" target="_blank"><span class="a">allegro_message</span></a><span class="k2">(</span><span class="s">"Keyboard installed"</span><span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">17</td><td>&#160;</td></tr><tr><td class="number">18</td><td>  <span class="c">/* Suggest a good screen mode for OpenGL */</span></td></tr><tr><td class="number">19</td><td>  allegro_gl_set<span class="k2">(</span>AGL_Z_DEPTH, <span class="n">8</span><span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">20</td><td>  allegro_gl_set<span class="k2">(</span>AGL_COLOR_DEPTH, <span class="n">16</span><span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">21</td><td>  allegro_gl_set<span class="k2">(</span>AGL_SUGGEST, AGL_Z_DEPTH <span class="k3">|</span> AGL_COLOR_DEPTH<span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">22</td><td>  </td></tr><tr><td class="number">23</td><td>  <a href="http://www.allegro.cc/manual/allegro_message" target="_blank"><span class="a">allegro_message</span></a><span class="k2">(</span><span class="s">"Suggested color depths"</span><span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">24</td><td>&#160;</td></tr><tr><td class="number">25</td><td>  <span class="c">/* Set the graphics mode */</span></td></tr><tr><td class="number">26</td><td>  <a href="http://www.allegro.cc/manual/set_gfx_mode" target="_blank"><span class="a">set_gfx_mode</span></a><span class="k2">(</span>GFX_OPENGL_WINDOWED, <span class="n">640</span>, <span class="n">480</span>, <span class="n">0</span>, <span class="n">0</span><span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">27</td><td>  </td></tr><tr><td class="number">28</td><td>  <a href="http://www.allegro.cc/manual/allegro_message" target="_blank"><span class="a">allegro_message</span></a><span class="k2">(</span><span class="s">"Graphics mode set."</span><span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">29</td><td>  </td></tr><tr><td class="number">30</td><td>  <span class="c">/* Clear the screen */</span></td></tr><tr><td class="number">31</td><td>  glClear<span class="k2">(</span>GL_COLOR_BUFFER_BIT <span class="k3">|</span> GL_DEPTH_BUFFER_BIT<span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">32</td><td>&#160;</td></tr><tr><td class="number">33</td><td>        <a href="http://www.allegro.cc/manual/allegro_message" target="_blank"><span class="a">allegro_message</span></a><span class="k2">(</span><span class="s">"Cleared buffer"</span><span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">34</td><td>&#160;</td></tr><tr><td class="number">35</td><td>  <span class="c">/* Set up the view frustum */</span></td></tr><tr><td class="number">36</td><td>  glMatrixMode<span class="k2">(</span>GL_MODELVIEW<span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">37</td><td>  glLoadIdentity<span class="k2">(</span><span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">38</td><td>  glFrustum<span class="k2">(</span><span class="k3">-</span><span class="n">1</span>.<span class="n">0</span>, <span class="n">1</span>.<span class="n">0</span>, <span class="k3">-</span><span class="n">1</span>.<span class="n">0</span>, <span class="n">1</span>.<span class="n">0</span>, <span class="n">1</span>, <span class="n">60</span>.<span class="n">0</span><span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">39</td><td>&#160;</td></tr><tr><td class="number">40</td><td>  <span class="c">/* Draw a quad using OpenGL */</span></td></tr><tr><td class="number">41</td><td>  glBegin<span class="k2">(</span>GL_QUADS<span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">42</td><td>    glColor3ub<span class="k2">(</span><span class="n">255</span>, <span class="n">255</span>, <span class="n">255</span><span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">43</td><td>    glVertex3f<span class="k2">(</span><span class="k3">-</span><span class="n">1</span>, <span class="k3">-</span><span class="n">1</span>, <span class="k3">-</span><span class="n">2</span><span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">44</td><td>    glVertex3f<span class="k2">(</span> <span class="n">1</span>, <span class="k3">-</span><span class="n">1</span>, <span class="k3">-</span><span class="n">2</span><span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">45</td><td>    glVertex3f<span class="k2">(</span> <span class="n">1</span>,  <span class="n">1</span>, <span class="k3">-</span><span class="n">2</span><span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">46</td><td>    glVertex3f<span class="k2">(</span><span class="k3">-</span><span class="n">1</span>,  <span class="n">1</span>, <span class="k3">-</span><span class="n">2</span><span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">47</td><td>  glEnd<span class="k2">(</span><span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">48</td><td>  </td></tr><tr><td class="number">49</td><td>  <span class="c">/* Flip the backbuffer on screen */</span></td></tr><tr><td class="number">50</td><td>  allegro_gl_flip<span class="k2">(</span><span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">51</td><td>  </td></tr><tr><td class="number">52</td><td>  <span class="c">/* Wait for the user to press a key */</span></td></tr><tr><td class="number">53</td><td>  <a href="http://www.allegro.cc/manual/readkey" target="_blank"><span class="a">readkey</span></a><span class="k2">(</span><span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">54</td><td>  </td></tr><tr><td class="number">55</td><td>  <span class="c">/* Finished. */</span></td></tr><tr><td class="number">56</td><td>  <span class="k1">return</span> <span class="n">0</span><span class="k2">;</span></td></tr><tr><td class="number">57</td><td><span class="k2">}</span></td></tr><tr><td class="number">58</td><td><a href="http://www.allegro.cc/manual/END_OF_MAIN" target="_blank"><span class="a">END_OF_MAIN</span></a><span class="k2">(</span><span class="k2">)</span><span class="k2">;</span></td></tr></tbody></table></div></div><p>

It returns the version as &quot;0.4.0 RC4&quot; and the code gets to 
</p><div class="source-code snippet"><div class="inner"><pre><a href="http://www.allegro.cc/manual/allegro_message" target="_blank"><span class="a">allegro_message</span></a><span class="k2">(</span><span class="s">"Suggested color depths"</span><span class="k2">)</span><span class="k2">;</span>
</pre></div></div><p>
then it crashes.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Paladin)</author>
		<pubDate>Thu, 03 Aug 2006 00:13:23 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
he code gets to allegro_message(&quot;Suggested color depths&quot;); then it crashes.
</p></div></div><p>

Can you step in AllegroGL&#39;s win.c, function allegro_gl_win_init() and see where it crashes there?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Bob)</author>
		<pubDate>Thu, 03 Aug 2006 00:16:21 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>What do you mean?  Do you mean use that function in my code?  I&#39;m a little confused on the subject.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Paladin)</author>
		<pubDate>Thu, 03 Aug 2006 00:32:48 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>No. I mean use a debugger (or lots of printfs, whichever you prefer) and try to figure out where is AGL crashing.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Bob)</author>
		<pubDate>Thu, 03 Aug 2006 00:34:05 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>
Ok, if you are new to debugging then do this:</p><p>Add some printf(&quot;1&quot;); printf(&quot;2&quot;), etc.. to different lines in the allegro_gl_win_init() function that Bob describes. Recompile the AllegroGL lib and reinstall it. Run your program and make it open a console window (should be done normally, as one of the compile flags removes it) and see what number it gets upto in the console window.</p><p>That should help narrow it down so it can be fixed.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Richard Phipps)</author>
		<pubDate>Thu, 03 Aug 2006 02:29:18 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>So what do I need to include in the parameters to recompile allegrogl?  Guys, I&#39;m really sorry that I&#39;m slow, I&#39;m just new to all of this.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Paladin)</author>
		<pubDate>Thu, 03 Aug 2006 03:01:35 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>
Just do what you did before.. For mingw: fix mingw32, make and then make install. <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" /></p><p>EDIT: Come on Brian. If you figure it out if will help you and other people trying to run AllegroGL / Openlayer games. <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Richard Phipps)</author>
		<pubDate>Fri, 04 Aug 2006 03:57:04 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I will finish debugging this tomorrow, but for now here are the offending lines (from win.c):
</p><div class="source-code snippet"><div class="inner"><pre>  <span class="k1">if</span> <span class="k2">(</span>allegro_gl_extensions_GL.ARB_multisample<span class="k2">)</span> <span class="k2">{</span>
    glSampleCoverageARB<span class="k2">(</span><span class="n">1</span>.<span class="n">0</span>, GL_FALSE<span class="k2">)</span><span class="k2">;</span>
  <span class="k2">}</span>
</pre></div></div><p>

Apparently, the variable allegro_gl_extensions_GL suggests that the Intel 915series chipset is capable of handling this Open GL extension, but it is not. I suspect that the extensions are being parsed improperly, but I ran out of time to verify this today.</p><p>Tomorrow, I will try to find out the root of the problem, but for now, if you comment out the lines I copied above, you can at least get allegrogl to run.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Michael Austin)</author>
		<pubDate>Tue, 08 Aug 2006 06:13:38 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Thank you for your help!
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Bob)</author>
		<pubDate>Tue, 08 Aug 2006 06:16:48 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>
Thank you too! I hope we can find the problem and fix it so AllegroGL can work on these chipsets. <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" /></p><p>EDIT: I found this snippet of code for X at : <a href="http://www.ks.uiuc.edu/Research/vmd/doxygen/OpenGLDisplayDevice_8C-source.html">http://www.ks.uiuc.edu/Research/vmd/doxygen/OpenGLDisplayDevice_8C-source.html</a>
</p><div class="source-code snippet"><div class="inner"><pre><span class="n">00058</span> <span class="c">// determine if all of the ARB multisample extension routines are available</span>
<span class="n">00059</span> #<span class="k1">if</span> defined<span class="k2">(</span>GL_ARB_multisample<span class="k2">)</span> <span class="k3">&amp;</span><span class="k3">&amp;</span> defined<span class="k2">(</span>GLX_SAMPLES_ARB<span class="k2">)</span> <span class="k3">&amp;</span><span class="k3">&amp;</span> defined<span class="k2">(</span>GLX_SAMPLE_BUFFERS_ARB<span class="k2">)</span>
<span class="n">00060</span> #define USEARBMULTISAMPLE <span class="n">1</span>
<span class="n">00061</span> #endif
</pre></div></div><p>

Does this mean we need GLX extensions as well to use it for some chipsets?</p><p>And this link might be useful:<br /><a href="http://oss.sgi.com/projects/ogl-sample/registry/ARB/multisample.txt">http://oss.sgi.com/projects/ogl-sample/registry/ARB/multisample.txt</a></p><p>You probably know this already though.. <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" /></p><p>Hope you can fix this one!
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Richard Phipps)</author>
		<pubDate>Tue, 08 Aug 2006 13:25:18 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I just ran into this little problem myself when sending a binary to a friend of mine on a laptop with the 915m chipset. I think we may have to put another branching point to detect this particular chipset, or we need to contact intel, as <a href="http://www.softpedia.com/get/System/Benchmarks/OpenGL-Geometry-Benchmark.shtml">This piece of software</a> crashed in a similar way on the test &quot;Static VAO&quot;.</p><p>Hope that helps!</p><p>Drew
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Koiu Lpoi)</author>
		<pubDate>Tue, 08 Aug 2006 20:18:16 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>In the file &quot;gl_ext_list.h&quot;<br />The number &quot;1.3&quot; <br /><span class="source-code">AGL_EXT<span class="k2">(</span>ARB_multisample,             <span class="n">1</span>.<span class="n">3</span><span class="k2">)</span></span><br />is causing this code; (in &quot;glext.c&quot;)
</p><div class="source-code snippet"><div class="inner"><pre>  <span class="c">/* Get extension info for the rest of the lib */</span>
<span class="p">#    define AGL_EXT(name, ver) {                               \</span>
<span class="p">    allegro_gl_extensions_GL.name =                        \ </span>
<span class="p">          allegro_gl_is_extension_supported("GL_" #name)   \ </span>
<span class="p">      || (allegro_gl_info.version &gt;= ver &amp;&amp; ver &gt; 0);      \ </span>
<span class="p">  } </span>
<span class="p">#   include "allegrogl/GLext/gl_ext_list.h"</span>
<span class="p">#   undef AGL_EXT</span>
</pre></div></div><p>

To set <br /><span class="source-code">allegro_gl_extensions_GL.ARB_multisample <span class="k3">=</span> <span class="n">1</span></span></p><p>However, the extension GL_ARB_multisample is apparently NOT available on this chipset (INTEL 915GM)
</p><div class="quote_container"><div class="title">allegro.log said:</div><div class="quote"><p>

OpenGL Version: 1.4.0 - Build 4.14.10.4332<br />Vendor: Intel<br />Renderer: Intel 915GM</p><p>GLU Version : 1.2.2.0 Microsoft Corporation
</p></div></div><p>

subsequently, when allegrogl attempts to use the extension (in &quot;win.c&quot;)
</p><div class="source-code snippet"><div class="inner"><pre>  <span class="k1">if</span> <span class="k2">(</span>allegro_gl_extensions_GL.ARB_multisample<span class="k2">)</span> <span class="k2">{</span>
    glSampleCoverageARB<span class="k2">(</span><span class="n">1</span>.<span class="n">0</span>, GL_FALSE<span class="k2">)</span><span class="k2">;</span>
  <span class="k2">}</span>
</pre></div></div><p>
It crashes (and burns).</p><p>Two possible solutions:<br />1. change line in &quot;gl_ext_list.h&quot; to read:<br /><span class="source-code"> AGL_EXT<span class="k2">(</span>ARB_multisample,             <span class="n">1</span>.<span class="n">4</span><span class="k2">)</span></span></p><p>OR</p><p>2. change line in &quot;win.c&quot; to read:
</p><div class="source-code snippet"><div class="inner"><pre>  <span class="k1">if</span> <span class="k2">(</span>allegro_gl_is_extension_supported<span class="k2">(</span><span class="s">"GL_ARB_multisample"</span><span class="k2">)</span><span class="k2">)</span><span class="k2">{</span>
    glSampleCoverageARB<span class="k2">(</span><span class="n">1</span>.<span class="n">0</span>, GL_FALSE<span class="k2">)</span><span class="k2">;</span>
  <span class="k2">}</span>
</pre></div></div><p>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Michael Austin)</author>
		<pubDate>Tue, 08 Aug 2006 22:02:02 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>
Thanks a lot Mike! <img src="http://www.allegro.cc/forums/smileys/wink.gif" alt=";)" /></p><p>Mike, Bob, which option do you recommend? I&#39;ll be changing my version of AllegroGL so that it works on this chipset. <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Richard Phipps)</author>
		<pubDate>Tue, 08 Aug 2006 23:23:54 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>We should do Option 3: Detect Intel 915G chipsets and force multisampling to be disabled. We alreday do this for ARB_texture_non_power_of_two.</p><p>The fix would be in src/glext.c in function __allegro_gl_manage_extensions(void).
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Bob)</author>
		<pubDate>Tue, 08 Aug 2006 23:48:18 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>
For now I&#39;ve implemented no. 2 and my game now works on a Intel 915 laptop.</p><p>Can one of the AllegroGL devs post in the forum when this fix is applied to the CVS branch and I&#39;ll download.</p><p>Also, I&#39;m not sure if this problem applies to other Intel chipsets in that range..?</p><p>Thanks Bob!
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Richard Phipps)</author>
		<pubDate>Tue, 08 Aug 2006 23:50:42 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>The problem with Option 2 is that it will work in Windows XP and under, but it will not necessarily work properly in Linux or Windows Vista. The extensions string does not need to contain things that are part of the core spec.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Bob)</author>
		<pubDate>Tue, 08 Aug 2006 23:59:21 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>
So is this a bug in the OpenGL drivers for this Intel chipset?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Richard Phipps)</author>
		<pubDate>Wed, 09 Aug 2006 00:18:51 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>What does printf(&quot;%s&quot;, (const char*)glGetString(GL_VENDOR)); say?</p><p>Should GL_ARB_multisample be disabled only for Intel 915G? I&#39;ve seen AGL working fine on some other Intel chipsets (not sure which ones).
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Milan Mimica)</author>
		<pubDate>Wed, 09 Aug 2006 00:31:48 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>
Milan:<br />From Mike&#39;s Allegro Log file:
</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
OpenGL Version: 1.4.0 - Build 4.14.10.4332<br />Vendor: Intel<br />Renderer: Intel 915GM</p><p>GLU Version : 1.2.2.0 Microsoft Corporation
</p></div></div><p>
Is that the vendor string you refered to?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Richard Phipps)</author>
		<pubDate>Wed, 09 Aug 2006 00:39:01 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Bob said:</div><div class="quote"><p>
 The problem with Option 2 is that it will work in Windows XP and under, but it will not necessarily work properly in Linux or Windows Vista. The extensions string does not need to contain things that are part of the core spec.
</p></div></div><p>

I was wondering if you could point me at any documentation regarding this? I would like to learn more. Most of what I have read in regards to glGetString(GL_EXTENSIONS) merely mentions that it returns &quot;A list of supported GL extensions.&quot; If they didn&#39;t mean &quot;all supported extensions&quot; it seems like there would be some documentation somewhere explaining which supported extensions would be in this list?</p><p><b>edit</b> I don&#39;t doubt you, I just would like to read more about this.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Michael Austin)</author>
		<pubDate>Wed, 09 Aug 2006 01:21:35 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Richard: yes that&#39;s it, thanks</p><p>edit:<br />Here is the patch. If someone could test it that would be great.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Milan Mimica)</author>
		<pubDate>Wed, 09 Aug 2006 01:28:57 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
Most of what I have read in regards to glGetString(GL_EXTENSIONS) merely mentions that it returns &quot;A list of supported GL extensions.&quot; If they didn&#39;t mean &quot;all supported extensions&quot; it seems like there would be some documentation somewhere explaining which supported extensions would be in this list?
</p></div></div><p>
I think it&#39;s because if something is part of the core spec, it&#39;s not technically an extension, and thus doesn&#39;t have to be listed.. but it&#39;s still available to use. So like, if you have a driver that supports OpenGL 2.0, everything in the OpenGL 2.0 spec is implied. The extensions only need to list what isn&#39;t included in the core spec for the supported version.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Kitty Cat)</author>
		<pubDate>Wed, 09 Aug 2006 09:05:24 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>
Milan: Can you just tell me the changes? I&#39;m not having any luck with patches and MSYS. <img src="http://www.allegro.cc/forums/smileys/tongue.gif" alt=":P" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Richard Phipps)</author>
		<pubDate>Wed, 09 Aug 2006 13:57:14 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="source-code"><div class="toolbar"></div><div class="inner"><table width="100%"><tbody><tr><td class="number">1</td><td>Index: src<span class="k3">/</span>glext.c</td></tr><tr><td class="number">2</td><td><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span></td></tr><tr><td class="number">3</td><td><span class="k3">-</span><span class="k3">-</span><span class="k3">-</span> src<span class="k3">/</span>glext.c <span class="k2">(</span>revision <span class="n">1132</span><span class="k2">)</span></td></tr><tr><td class="number">4</td><td><span class="k3">+</span><span class="k3">+</span><span class="k3">+</span> src<span class="k3">/</span>glext.c <span class="k2">(</span>working copy<span class="k2">)</span></td></tr><tr><td class="number">5</td><td>@@ <span class="k3">-</span><span class="n">630</span>,<span class="n">6</span> <span class="k3">+</span><span class="n">630</span>,<span class="n">16</span> @@</td></tr><tr><td class="number">6</td><td>                        <span class="k2">}</span></td></tr><tr><td class="number">7</td><td>                <span class="k2">}</span></td></tr><tr><td class="number">8</td><td>        <span class="k2">}</span></td></tr><tr><td class="number">9</td><td><span class="k3">+</span></td></tr><tr><td class="number">10</td><td><span class="k3">+</span>       <span class="c">/* Intel 915G chipsets do not support ARB_multisample even though they claim to be</span></td></tr><tr><td class="number">11</td><td><span class="c">+        * OpenGL 1.4 compilant.</span></td></tr><tr><td class="number">12</td><td><span class="c">+        */</span></td></tr><tr><td class="number">13</td><td><span class="k3">+</span>       <span class="k2">{</span></td></tr><tr><td class="number">14</td><td><span class="k3">+</span>               <span class="k1">const</span> <span class="k1">char</span> <span class="k3">*</span>renderer <span class="k3">=</span> <span class="k2">(</span><span class="k1">const</span> <span class="k1">char</span><span class="k3">*</span><span class="k2">)</span>glGetString<span class="k2">(</span>GL_RENDERER<span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">15</td><td><span class="k3">+</span>               <span class="k1">if</span> <span class="k2">(</span><a href="http://www.delorie.com/djgpp/doc/libc/libc_775.html" target="_blank">strstr</a><span class="k2">(</span>renderer, <span class="s">"Intel 915G"</span><span class="k2">)</span><span class="k2">)</span> <span class="k2">{</span></td></tr><tr><td class="number">16</td><td><span class="k3">+</span>                       allegro_gl_extensions_GL.ARB_multisample <span class="k3">=</span> <span class="n">0</span><span class="k2">;</span></td></tr><tr><td class="number">17</td><td><span class="k3">+</span>               <span class="k2">}</span></td></tr><tr><td class="number">18</td><td><span class="k3">+</span>       <span class="k2">}</span></td></tr><tr><td class="number">19</td><td> <span class="k2">}</span></td></tr></tbody></table></div></div><p>
I hope you can read patches. It&#39;s easy. File src/glext.c, line 630, add the code.</p><p>About the extension promotion, the OGL specs say:
</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
G.2      Promoting Extensions to Core Features<br />ARB extensions can be promoted to required core features in later revisions of<br />OpenGL. When this occurs, the extension specifications are merged into the core<br />specification. Functions and enumerants that are part of such promoted extensions<br />will have the ARB affix removed<br />     GL implementations of such later revisions should continue to export the name<br />strings of promoted extensions in the EXTENSIONS string, and continue to support<br />the ARB-affixed versions of functions and enumerants as a transition aid.
</p></div></div><p>

If I understand that correctly, the promoted extension should still be listed in EXTENSIONS string, and can be accessed the same way before they were promoted, i.e. it should be backward compatible.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Milan Mimica)</author>
		<pubDate>Wed, 09 Aug 2006 15:09:05 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>
Thanks Milan! Hopefully this will work. <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" /></p><p>One thing: I&#39;m not sure if any other 915x chipsets or 9xx chipsets are affected. Does anyone know?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Richard Phipps)</author>
		<pubDate>Wed, 09 Aug 2006 15:37:52 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
If I understand that correctly, the promoted extension should still be listed in EXTENSIONS string, and can be accessed the same way before they were promoted, i.e. it should be backward compatible.
</p></div></div><p>
should != must. Even though it would be a (really) bad idea for compatibility reasons, they aren&#39;t required to.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Kitty Cat)</author>
		<pubDate>Wed, 09 Aug 2006 15:59:14 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Well... I was doing some reading and thinking about what has been said on this thread, and I downloaded GLEW library. (<a href="http://glew.sourceforge.net/">http://glew.sourceforge.net/</a>)</p><p>And I made a discovery:</p><div class="quote_container"><div class="title">glewinfo.txt said:</div><div class="quote"><p>
GL_ARB_multisample:                                            MISSING <br />-------------------<br />  glSampleCoverageARB:                                         MISSING
</p></div></div><p>

However, the interesting part was back in the GL 1.3 spec, which said:
</p><div class="quote_container"><div class="title">glewinfo.txt said:</div><div class="quote"><p>
GL_VERSION_1_3:                                                OK <br />---------------<br />  glActiveTexture:                                             OK<br />  glClientActiveTexture:                                       OK<br />  glCompressedTexImage1D:                                      OK<br />  glCompressedTexImage2D:                                      OK<br />  glCompressedTexImage3D:                                      OK<br />  glCompressedTexSubImage1D:                                   OK<br />  glCompressedTexSubImage2D:                                   OK<br />  glCompressedTexSubImage3D:                                   OK<br />  glGetCompressedTexImage:                                     OK<br />  glLoadTransposeMatrixd:                                      OK<br />  glLoadTransposeMatrixf:                                      OK<br />  glMultTransposeMatrixd:                                      OK<br />  glMultTransposeMatrixf:                                      OK<br />  glMultiTexCoord1d:                                           OK<br />  glMultiTexCoord1dv:                                          OK<br />  glMultiTexCoord1f:                                           OK<br />  glMultiTexCoord1fv:                                          OK<br />  glMultiTexCoord1i:                                           OK<br />  glMultiTexCoord1iv:                                          OK<br />  glMultiTexCoord1s:                                           OK<br />  glMultiTexCoord1sv:                                          OK<br />  glMultiTexCoord2d:                                           OK<br />  glMultiTexCoord2dv:                                          OK<br />  glMultiTexCoord2f:                                           OK<br />  glMultiTexCoord2fv:                                          OK<br />  glMultiTexCoord2i:                                           OK<br />  glMultiTexCoord2iv:                                          OK<br />  glMultiTexCoord2s:                                           OK<br />  glMultiTexCoord2sv:                                          OK<br />  glMultiTexCoord3d:                                           OK<br />  glMultiTexCoord3dv:                                          OK<br />  glMultiTexCoord3f:                                           OK<br />  glMultiTexCoord3fv:                                          OK<br />  glMultiTexCoord3i:                                           OK<br />  glMultiTexCoord3iv:                                          OK<br />  glMultiTexCoord3s:                                           OK<br />  glMultiTexCoord3sv:                                          OK<br />  glMultiTexCoord4d:                                           OK<br />  glMultiTexCoord4dv:                                          OK<br />  glMultiTexCoord4f:                                           OK<br />  glMultiTexCoord4fv:                                          OK<br />  glMultiTexCoord4i:                                           OK<br />  glMultiTexCoord4iv:                                          OK<br />  glMultiTexCoord4s:                                           OK<br />  glMultiTexCoord4sv:                                          OK<br />  glSampleCoverage:                                            OK
</p></div></div><p>

Which, got me thinking... If it was upgraded to Core in 1.3 and Intel failed to maintain backwards compatibility (by defining glSampleCoverageARB()), perhaps just using &quot;glSampleCoverage&quot; would work.</p><p>Sure enough I changed the lines in &quot;win.c&quot;<br />from -
</p><div class="source-code snippet"><div class="inner"><pre>  <span class="k1">if</span> <span class="k2">(</span>allegro_gl_extensions_GL.ARB_multisample<span class="k2">)</span> <span class="k2">{</span>
    glSampleCoverageARB<span class="k2">(</span><span class="n">1</span>.<span class="n">0</span>, GL_FALSE<span class="k2">)</span><span class="k2">;</span>
  <span class="k2">}</span>
</pre></div></div><p>
to -
</p><div class="source-code snippet"><div class="inner"><pre>  <span class="c">//if (allegro_gl_extensions_GL.ARB_multisample) {</span>
    glSampleCoverage<span class="k2">(</span><span class="n">1</span>.<span class="n">0</span>, GL_FALSE<span class="k2">)</span><span class="k2">;</span>
  <span class="c">//}</span>
</pre></div></div><p>

And... it worked.</p><p>So, my theory seems to be correct, that Intel chipset <b>does</b> support the command (glSampleCoverage), but not the compatibility version of the command (glSampleCoverageARB).
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Michael Austin)</author>
		<pubDate>Thu, 10 Aug 2006 01:38:18 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Will glSampleCoverage work on OGL &lt; 1.3?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Milan Mimica)</author>
		<pubDate>Thu, 10 Aug 2006 02:45:18 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I am no expert, but probably not.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Michael Austin)</author>
		<pubDate>Thu, 10 Aug 2006 02:46:22 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Here&#39;s one possiblity to fix this in AllegroGL:</p><div class="source-code snippet"><div class="inner"><pre><span class="c">/* On platforms where glSampleCoverageARB is a function pointer, ONLY */</span>
<span class="k1">if</span> <span class="k2">(</span>glSampleCoverage <span class="k3">&amp;</span><span class="k3">&amp;</span> <span class="k3">!</span>glSampleCoverageARB<span class="k2">)</span> <span class="k2">{</span>
    glSampleCoverageARB <span class="k3">=</span> glSampleCoverage<span class="k2">;</span>
<span class="k2">}</span>
</pre></div></div><p>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Bob)</author>
		<pubDate>Thu, 10 Aug 2006 04:22:40 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Michael, are there other extensions which may require the same fix, CompressedTexImage2D for example?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Milan Mimica)</author>
		<pubDate>Thu, 10 Aug 2006 12:49:07 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Curious.. should you hack AllegroGL to work with Intel&#39;s drivers, or should you fix <a href="http://intellinuxgraphics.org/">Intel&#39;s drivers</a> to work better?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Kitty Cat)</author>
		<pubDate>Thu, 10 Aug 2006 20:45:19 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>
Those drivers seem to be for Linux, KC. I didn&#39;t think the windows drivers were open source?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Richard Phipps)</author>
		<pubDate>Thu, 10 Aug 2006 20:57:16 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Depends on how much code is shared between the two. Since this specific problem seems to be only due to missing API symbols, it&#39;s not inconceivable that the fix for Windows isn&#39;t very different than for Linux. And who knows. With open source drivers that can show you how to handle the hardware, open source drivers could pop up for other platforms, perhaps with better OpenGL support in Windows.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Kitty Cat)</author>
		<pubDate>Thu, 10 Aug 2006 21:46:28 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>But is that a bug at all? This is the &quot;should&quot; part of the specification. It seems to be a AGL bug or a design flaw.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Milan Mimica)</author>
		<pubDate>Fri, 11 Aug 2006 00:07:33 +0000</pubDate>
	</item>
</rss>
