Bug search: derelict3 and scope(exit)

2013-06-26 Thread Namespace
Since I had a problem by using derelict3 (more precise: I get an Access Violation), Mike Parker and I were looking for the problem. Today Mike Parker figured out that it happens only if scope(exit) is used in combination with glPopAttrib. But because we have not much experience in reading assem

Re: Bug search: derelict3 and scope(exit)

2013-06-26 Thread Namespace
Second workaround so far: Use something like that: scope(exit) glAvoidAE(glPopAttrib(mask)); with void glAvoidAE(lazy void Func) { Func(); } That's strange.

Re: Bug search: derelict3 and scope(exit)

2013-06-26 Thread Mike Parker
On Wednesday, 26 June 2013 at 07:55:29 UTC, Namespace wrote: Today Mike Parker figured out that it happens only if scope(exit) is used in combination with glPopAttrib. But That's not exactly what I was getting at. The problem isn't with scope(exit) or, I believe, glPopAttrib. It just so happen