<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>[a5] shader examples crashing in DIRECT3D mode</title>
		<link>http://www.allegro.cc/forums/view/615570</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Wed, 22 Jul 2015 09:11:55 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Anybody else having this problem?</p><p><span class="source-code">ex_prim_shader.c</span><br /><span class="source-code">ex_shader.cpp</span><br /><span class="source-code">ex_shader_multitex.c</span><br /><span class="source-code">ex_shader_target.c</span></p><p><span class="source-code">ex_shader.cpp</span> has a command line flag <span class="source-code"><span class="k3">-</span><span class="k3">-</span>opengl</span> to run in opengl mode, but the others do not.  I compiled the other programs to create displays with <span class="source-code">ALLEGRO_OPENGL</span> and they worked fine.  For some reason the example programs do not output an allegro.log <img src="http://www.allegro.cc/forums/smileys/huh.gif" alt="???" /> I&#39;m not sure why.</p><p>I&#39;m using Allegro 5.1.11, same from Speedhack.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Mark Oates)</author>
		<pubDate>Wed, 22 Jul 2015 01:44:41 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I built the examples as static release mode binaries, so no debugging symbols and no log. :/ I think there might be a way to enable the log through the cfg file though.</p><p>EDIT<br />I tested the examples you pointed out, and I get ;</p><p>1. ex_prim_shader.exe gives me a blank white screen and does nothing</p><p>2. ex_shader.exe crashes</p><p>3. ex_shader_multitex.exe crashes too</p><p>4. ex_shader_target.exe crashes too</p><p>ex_shader crashes here :
</p><div class="source-code snippet"><div class="inner"><pre>Program received <a href="http://www.delorie.com/djgpp/doc/libc/libc_724.html" target="_blank">signal</a> SIGSEGV, Segmentation fault.
<span class="n">0x695dbca4</span> in d3dx9_43<span class="k3">!</span>D3DXCreateEffect <span class="k2">(</span><span class="k2">)</span> from C:\Windows\system32\D3DX9_43.dll
<span class="k2">(</span>gdb<span class="k2">)</span> bt
<span class="p">#0  0x695dbca4 in d3dx9_43!D3DXCreateEffect () from C:\Windows\system32\D3DX9_43.dll</span>
<span class="p">#1  0x0045bb49 in d3d_flush_vertex_cache(ALLEGRO_DISPLAY*) ()</span>
<span class="p">#2  0x004b2cf5 in d3d_draw_bitmap_region(ALLEGRO_BITMAP*, ALLEGRO_COLOR, float, float, float, float, int) ()</span>
<span class="p">#3  0x0040aa4c in al_draw_bitmap ()</span>
<span class="p">#4  0x004bc9ba in main ()</span>
<span class="k2">(</span>gdb<span class="k2">)</span>
</pre></div></div><p>

ex_shader_multitex crashes similarly :
</p><div class="source-code snippet"><div class="inner"><pre>Program received <a href="http://www.delorie.com/djgpp/doc/libc/libc_724.html" target="_blank">signal</a> SIGSEGV, Segmentation fault.
<span class="n">0x69c2bca4</span> in d3dx9_43<span class="k3">!</span>D3DXCreateEffect <span class="k2">(</span><span class="k2">)</span> from C:\Windows\system32\D3DX9_43.dll
<span class="k2">(</span>gdb<span class="k2">)</span> bt
<span class="p">#0  0x69c2bca4 in d3dx9_43!D3DXCreateEffect () from C:\Windows\system32\D3DX9_43.dll</span>
<span class="p">#1  0x00475089 in d3d_flush_vertex_cache(ALLEGRO_DISPLAY*) ()</span>
<span class="p">#2  0x004b2cf5 in d3d_draw_bitmap_region(ALLEGRO_BITMAP*, ALLEGRO_COLOR, float, float, float, float, int) ()</span>
<span class="p">#3  0x0041059c in al_draw_scaled_rotated_bitmap ()</span>
<span class="p">#4  0x004bcaec in main ()</span>
<span class="k2">(</span>gdb<span class="k2">)</span>
</pre></div></div><p>

And ex_shader_target crashes here (in the same place) :
</p><div class="source-code snippet"><div class="inner"><pre>Program received <a href="http://www.delorie.com/djgpp/doc/libc/libc_724.html" target="_blank">signal</a> SIGSEGV, Segmentation fault.
<span class="n">0x69c2bca4</span> in d3dx9_43<span class="k3">!</span>D3DXCreateEffect <span class="k2">(</span><span class="k2">)</span> from C:\Windows\system32\D3DX9_43.dll
<span class="k2">(</span>gdb<span class="k2">)</span> bt
<span class="p">#0  0x69c2bca4 in d3dx9_43!D3DXCreateEffect () from C:\Windows\system32\D3DX9_43.dll</span>
<span class="p">#1  0x00446539 in d3d_flush_vertex_cache(ALLEGRO_DISPLAY*) ()</span>
<span class="p">#2  0x004ae945 in d3d_draw_bitmap_region(ALLEGRO_BITMAP*, ALLEGRO_COLOR, float, float, float, float, int) ()</span>
<span class="p">#3  0x0040ceec in al_draw_bitmap ()</span>
<span class="p">#4  0x004bca01 in main ()</span>
<span class="k2">(</span>gdb<span class="k2">)</span>
</pre></div></div><p>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Edgar Reynaldo)</author>
		<pubDate>Wed, 22 Jul 2015 02:03:17 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>To enable logging, you need to set the trace level in the system configuration to something non-empty. E.g. you can put this in an <span class="source-code">allegro5.log</span>:</p><pre>
[trace]
level = debug
</pre><p>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (SiegeLord)</author>
		<pubDate>Wed, 22 Jul 2015 09:11:55 +0000</pubDate>
	</item>
</rss>
