tschw
tschw
So the destructor of the static object attempts to clean up but the interpreter's gone? There's [atexit](https://docs.python.org/3/library/atexit.html) in Python (similar to [std::atexit](http://en.cppreference.com/w/cpp/utility/program/atexit) in C++) that lets you register a callback...
Yes, I meant doing the python `atexit` call programmatically from within C++ code, actually. Another solution would be to have everything, including the system context in classes, then it would...
Hangs and segfaults can happen all over the place (depending on compiler version and optimization options) because old C tricks in `list.h` break the assumptions made by modern compilers. So,...
Hahaha! Although the patch reads so nice and simple, I too had some fun debugging: When it comes to optimized executables, you have no choice but to strainfully trace the...
See commit e480701dc39d88eff2aaa5ae03ae1941793a80a1 of open PR #91. And / or see diff in [this issue on the zz85 fork](https://github.com/zz85/glsl-optimizer/issues/1) (omit the hacks in `glsl_optimizer.cpp`) for this and another linux build...
Let's say "it attempts to solve the root of the problem rather than its symptoms". I'm not sure it's correctly correct, but it at least keeps my version of GCC...
An alternative approach for the less artistic engineer could be to replace bitmap font handling with something that renders standard vector fonts, this way supporting any character therein (or at...
If it's only that, we might be able to patch it. I had to do that for `glsl-unit` already, because it did some questionable transforms on arithmetic expressions
Seeing similar behavior sometimes. I had to call it with `glVersion = 2` to keep this from happening on a shader using `gl_PointCoord` - else I got this weird output...
@SuicSoft https://github.com/tschw/glslprep.js/blob/gh-pages/src/glslunit/compiler/preprocessor.js#L238-L265