Open olsdavis opened 6 years ago
Are you importing more than one gl
package? I'm not sure how well supported that is, if at all. Are you calling Init
function for each?
Sorry, I don't have many more ideas about this.
Hi, thanks for reaching out. Sorry for the unresponsiveness.
I'm closing this thread due to inactivity, and because there isn't obviously enough information here to try and reproduce the issue. If you still have an issue you can reproduce, please ping the thread to reopen or file a new issue, thanks!
Just as a note, I could repro this by calling all-core/gl
functions without an explicit all-core/gl.Init()
. Found it by mistake when trying to use https://github.com/nullboundary/glfont at the same time as v3.3-core/gl
Reopening to ponder if we can put protection in to prevent importing multiple gl versions in a more obvious way. Contributions welcome, I'm not working on it.
@pwaller As a solution, could we use an init() function and a global in each version's gl package to detect when more than one are imported?
I'm not sure whether there is an issue that can or should be solved (and to which degree the thread was hijacked). To reiterate:
all-core/gl
was missing the Init()
callgl
packages themselves don't know about each other. It would be tricky to teach glow
to add some cross-communication layer, especially if glow
creates only one one API at a time.
Also, I believe it is acceptable to use different APIs within the same process, such as via different libraries of a larger application. (e.g., a library provides a nice rendering of a color wheel and only wants a compatible context active when called).
In short, I see this as a case-specific problem if packages are mixed up.
Hi there!
Thanks for this library, it's very cool, but I am currently having a really annoying issue, which actually makes my program crash every time I call a function from the
all-core/gl
package. Here is the error:Here is a snippet of the code which runs the
LoadIdentity
and makes the whole thing crash:Note:
gl2
is the name of theall-core
import. Yeah, not a very good clue, I could send some more code if you ask. And I guess that this does to every other function of the package, because I've tested it with some others.Thank you in advance!