<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Factorio is not working on the new OS X Yosemite</title>
		<link>http://www.allegro.cc/forums/view/614730</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Sun, 02 Nov 2014 23:29:14 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>We are getting a lot of reports like this, do anyone know how to fix it?</p><p><a href="http://www.factorioforums.com/forum/viewtopic.php?f=7&amp;t=6159">http://www.factorioforums.com/forum/viewtopic.php?f=7&amp;t=6159</a>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (kovarex)</author>
		<pubDate>Sat, 18 Oct 2014 21:13:17 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I don&#39;t know but I&#39;m concerned about my own games now. I&#39;m going to install Yosemite and take a look.</p><p>EDIT: My games don&#39;t work either. Going to have to be fixed at some point SOON.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Trent Gamblin)</author>
		<pubDate>Sun, 19 Oct 2014 01:08:50 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>It looks like 10.10 triggers a resize on the view when the OpenGLContext is set.</p><p>In macosx/osxgl.m (around line 908 or something):</p><p>Move this code:
</p><div class="source-code"><div class="toolbar"><span class="button numbers"><b>#</b></span><span class="button select">Select</span><span class="button expand">Expand</span></div><div class="inner"><span class="number"> 1</span>   <span class="c">/* Hook up the view to its display */</span>
<span class="number"> 2</span>   <span class="k2">[</span>view setAllegroDisplay: <span class="k3">&amp;</span>dpy-&gt;parent<span class="k2">]</span><span class="k2">;</span>
</div></div><p>

Above this line:</p><div class="source-code"><div class="toolbar"><span class="button numbers"><b>#</b></span><span class="button select">Select</span><span class="button expand">Expand</span></div><div class="inner"><span class="number"> 1</span>   <span class="k2">[</span>view setOpenGLContext: dpy-&gt;ctx<span class="k2">]</span><span class="k2">;</span>
</div></div><p>

So the new code looks like:</p><div class="source-code"><div class="toolbar"><span class="button numbers"><b>#</b></span><span class="button select">Select</span><span class="button expand">Expand</span></div><div class="inner"><span class="number"> 1</span>   <span class="c">/* Hook up the view to its display */</span>
<span class="number"> 2</span>   <span class="k2">[</span>view setAllegroDisplay: <span class="k3">&amp;</span>dpy-&gt;parent<span class="k2">]</span><span class="k2">;</span>
<span class="number"> 3</span>   <span class="k2">[</span>view setOpenGLContext: dpy-&gt;ctx<span class="k2">]</span><span class="k2">;</span>
<span class="number"> 4</span>   <span class="k2">[</span>view setPixelFormat: fmt<span class="k2">]</span><span class="k2">;</span>
<span class="number"> 5</span>   <span class="c">// moved hook up from here</span>
</div></div><p>

This fixed the problem for me.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (lordnoriyuki)</author>
		<pubDate>Tue, 21 Oct 2014 00:36:53 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Thanks a lot, I&#39;ll check it out and if it works I&#39;ll commit the fix to git.</p><p>EDIT: Fix committed.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Trent Gamblin)</author>
		<pubDate>Tue, 21 Oct 2014 01:26:47 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Hello, thank you for the help, it is appreciated a lot!<br />I included the change into our new version.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (kovarex)</author>
		<pubDate>Tue, 21 Oct 2014 12:46:06 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>
Hello</p><p>Today I did the Update to Yosemite.</p><p>The Program crashed and Xcode shows this line. ( 311 ) in osxgl.m </p><p>if (dpy-&gt;tracking) {     -- Thread1: EXC_BAD_ACCESS</p><p>in the following function</p><p>/* reshape
</p><ul><li><p>Called when the view changes size */
</p></li></ul><p>- (void) reshape <br />{<br />   if ([NSOpenGLContext currentContext] != nil) {<br />      ALLEGRO_DISPLAY_OSX_WIN* dpy =  (ALLEGRO_DISPLAY_OSX_WIN*) dpy_ptr;<br />      NSRect rc = [self bounds];<br />      glViewport(0, 0, NSWidth(rc), NSHeight(rc));<br />      <br />      glMatrixMode(GL_PROJECTION);<br />      glLoadIdentity();<br />      glOrtho(0, NSWidth(rc), NSHeight(rc), 0, -1, 1);<br />      <br />      if (dpy-&gt;tracking) {<br />         [self removeTrackingArea: dpy-&gt;tracking];<br />         dpy-&gt;tracking = create_tracking_area(self);<br />	 [self addTrackingArea: dpy-&gt;tracking];<br />      }<br />   }<br />}</p><p>I downloaded the latest Version from git with &quot;lordnoriyuki&#39;s&quot; fix</p><p>Any idea ??, help would be appreciated<br />Greatings,<br />Ingo
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Ingo Maurischat)</author>
		<pubDate>Sun, 26 Oct 2014 16:14:04 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Make sure you&#39;re really using the updated code. That&#39;s about all I can think of, because it looks like the same error.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Trent Gamblin)</author>
		<pubDate>Sun, 26 Oct 2014 19:53:21 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>
Thanks Trent for your answer.</p><p>I tried a complete rebuild with</p><p>git clone <a>git://git.code.sf.net/p/alleg/allegro</a><br />cd allegro<br />git checkout 5.0<br />mkdir build<br />cd build<br />cmake -DSHARED=0 ..<br />make<br />sudo make install</p><p>But this doesn&#39;t help, same error. Are you using shared or static libs?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Ingo Maurischat)</author>
		<pubDate>Sun, 02 Nov 2014 14:21:51 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Use 5.1 not 5.0.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Elias)</author>
		<pubDate>Sun, 02 Nov 2014 16:08:21 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>

Elias, thanks a lot, now it works.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Ingo Maurischat)</author>
		<pubDate>Sun, 02 Nov 2014 18:44:54 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Before this thread, I never realized Factorio ran on Allegro. I might buy it just for that reason. <img src="http://www.allegro.cc/forums/smileys/cool.gif" alt="8-)" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Chris Katko)</author>
		<pubDate>Sun, 02 Nov 2014 23:29:14 +0000</pubDate>
	</item>
</rss>
