Re: [AD] All D3D shader examples crash in EndPass
On 12/2/2016 10:28 PM, Elias Pschernig wrote: You can compile with mingw without dx9mgw.zip (which is really outdated at this point). There's instructions here for example, using the DirectX libs/headers included with mingw: https://wiki.allegro.cc/index.php?title=Building_with_msys2 Standard MinGW (non-MSYS2) still needs DirectX and I don't want to download the DXSDK. I don't like using MSYS2 because it doesn't have cmake-gui. It would be nice to have a new version of the minimalist DXSDK available (if that is the cause of these problems). I'm also kind of clumsy when it comes to using a bash shell, so MSYS2 is not my favorite. ___ Allegro-developers mailing list Allegro-developers@gna.org https://mail.gna.org/listinfo/allegro-developers
Re: [AD] All D3D shader examples crash in EndPass
You can compile with mingw without dx9mgw.zip (which is really outdated at this point). There's instructions here for example, using the DirectX libs/headers included with mingw: https://wiki.allegro.cc/index.php?title=Building_with_msys2 On Fri, Dec 2, 2016 at 7:11 PM, Edgar Reynaldo < edgarreyna...@members.allegro.cc> wrote: > > > On 12/1/2016 8:59 PM, tr...@nooskewl.ca wrote: > >> On Thu, December 1, 2016 5:58 pm, Edgar Reynaldo wrote: >> >>> As reported before a while ago, all of the shader example programs crash >>> when using D3D and HLSL. The shaders all compile and build fine, but >>> crash when attempting to draw them. Every program works fine when using >>> OpenGL instead. >>> >>> See this old thread for details : >>> >>> https://www.allegro.cc/forums/thread/615570 >>> >>> I've been trying to debug it but I don't know why they crash. The calls >>> to DrawPrimtiveUP all seem to succeed and return D3D_OK but the programs >>> then crash on the next line in Effect.EndPass(). See lines 2735-2746 of >>> d3d_disp.cpp for details. >>> >>> Edgar >>> >> Have you tried it with the official binaries? I compile my own with VS and >> I know that configuration works. >> > I compiled Allegro 5.2.GIT with MSYS2 and mingw-w64-x86_64 gcc 6.2.0 > statically and I can't get it to crash. It may be a problem with > dx9mgw.zip. I'm not going to download the DirectX SDK to see if there is > any difference. It's a giant hairball full of unnecessary bloat. And I'm > not setup to compile Allegro with MSVC 2015 or 2010 to try that way. > > As an aside, the official binaries don't come with the examples, but I > think they should come with dynamic debug examples so people can help us > fix problems, and as a perk, get to try out Allegro programs without any > effort on their part. > > Edgar > > To test that I was using the dlls provided with dx9mgw.zip I set the path > to that directory and that directory only, so it shouldn't have been using > any other DirectX than what was provided with dx9mgw.zip. > > > > ___ > Allegro-developers mailing list > Allegro-developers@gna.org > https://mail.gna.org/listinfo/allegro-developers > ___ Allegro-developers mailing list Allegro-developers@gna.org https://mail.gna.org/listinfo/allegro-developers
Re: [AD] All D3D shader examples crash in EndPass
On 12/1/2016 8:59 PM, tr...@nooskewl.ca wrote: On Thu, December 1, 2016 5:58 pm, Edgar Reynaldo wrote: As reported before a while ago, all of the shader example programs crash when using D3D and HLSL. The shaders all compile and build fine, but crash when attempting to draw them. Every program works fine when using OpenGL instead. See this old thread for details : https://www.allegro.cc/forums/thread/615570 I've been trying to debug it but I don't know why they crash. The calls to DrawPrimtiveUP all seem to succeed and return D3D_OK but the programs then crash on the next line in Effect.EndPass(). See lines 2735-2746 of d3d_disp.cpp for details. Edgar Have you tried it with the official binaries? I compile my own with VS and I know that configuration works. I compiled Allegro 5.2.GIT with MSYS2 and mingw-w64-x86_64 gcc 6.2.0 statically and I can't get it to crash. It may be a problem with dx9mgw.zip. I'm not going to download the DirectX SDK to see if there is any difference. It's a giant hairball full of unnecessary bloat. And I'm not setup to compile Allegro with MSVC 2015 or 2010 to try that way. As an aside, the official binaries don't come with the examples, but I think they should come with dynamic debug examples so people can help us fix problems, and as a perk, get to try out Allegro programs without any effort on their part. Edgar To test that I was using the dlls provided with dx9mgw.zip I set the path to that directory and that directory only, so it shouldn't have been using any other DirectX than what was provided with dx9mgw.zip. ___ Allegro-developers mailing list Allegro-developers@gna.org https://mail.gna.org/listinfo/allegro-developers
Re: [AD] All D3D shader examples crash in EndPass
A better spot for these bug reports is on github, as things tend to get forgotten here. As for this specific bug, have you tried downgrading to an older version of Allegro (looks like pre 5.1.11). I'll try to get around to reproducing this locally as well at some point. -SL On 12/01/2016 02:58 PM, Edgar Reynaldo wrote: As reported before a while ago, all of the shader example programs crash when using D3D and HLSL. The shaders all compile and build fine, but crash when attempting to draw them. Every program works fine when using OpenGL instead. See this old thread for details : https://www.allegro.cc/forums/thread/615570 I've been trying to debug it but I don't know why they crash. The calls to DrawPrimtiveUP all seem to succeed and return D3D_OK but the programs then crash on the next line in Effect.EndPass(). See lines 2735-2746 of d3d_disp.cpp for details. Edgar ___ Allegro-developers mailing list Allegro-developers@gna.org https://mail.gna.org/listinfo/allegro-developers ___ Allegro-developers mailing list Allegro-developers@gna.org https://mail.gna.org/listinfo/allegro-developers
Re: [AD] All D3D shader examples crash in EndPass
On Thu, December 1, 2016 5:58 pm, Edgar Reynaldo wrote: > As reported before a while ago, all of the shader example programs crash > when using D3D and HLSL. The shaders all compile and build fine, but > crash when attempting to draw them. Every program works fine when using > OpenGL instead. > > See this old thread for details : > > https://www.allegro.cc/forums/thread/615570 > > I've been trying to debug it but I don't know why they crash. The calls > to DrawPrimtiveUP all seem to succeed and return D3D_OK but the programs > then crash on the next line in Effect.EndPass(). See lines 2735-2746 of > d3d_disp.cpp for details. > > Edgar Have you tried it with the official binaries? I compile my own with VS and I know that configuration works. ___ Allegro-developers mailing list Allegro-developers@gna.org https://mail.gna.org/listinfo/allegro-developers