New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make value_ptr const #49
Conversation
this still works with the gl methods taking const GLfloat*
Looks good to me, can you do the same for Quaternions and Vectors as well? |
ok done, good to go ? |
Thanks |
I'm getting unresolved symbols with this patch. The demangled symbol looks weird: const(pure nothrow @property @safe const(float)* function()) gl3n.linalg.Matrix!(float, 4, 4).Matrix.value_ptr |
Using gdc 2.065. |
Any ideas why this happens and how this is fixable? @extrawurst |
@mathstuf sure you have rebuilt the lib after upgrading ? |
i cannot reproduce the issue on win32 using dmd2.065. @Dav1dde maybe a travis-ci integration can prevent those issues in the future? it is easy to integrate to even test multiple compiler flavours and its free ;) |
Yep, started with a clean build too. |
@mathstuf as you can see travis-ci tests those compilers too now. gdc works too |
I guess to be clear, this is in a project using this gl3n build. |
so ? travis-ci builds for unittesting which is pretty much the same and i am using gl3n in a project that is built using travis with gdc: https://github.com/Extrawurst/unecht |
So what would cause that weird signature? It looks like it's returning a constant pointer to a function returning a |
Is it possible for you to provide a minimal example? Did you try with dmd instead of gdc? |
Oops, my bad. Seems the library I was using was pointing to the wrong build tree. Sorry for the noise. |
this still works with the gl methods taking const GLfloat*