I've tried to copy this into nim, produced this code . It compiles without problem but when I'm trying to execute it throws:
Traceback (most recent call last)
test.nim(59) test
opengl.nim(2380) glEnable
SIGSEGV: Illegal storage access. (Attempt to read from nil?)
It does not seem to miss any dll, yet it can't call gl methods. I've tried openGL glut example from repo and it worked succesfully. I can't call myself expert at openGL, but C code worked. Does anyone of you have idea where the problem may lie so I can fix it?