I've tried to copy 
[this](https://www.opengl.org/wiki/Programming_OpenGL_in_Linux:_GLX_and_Xlib) 
into nim, produced [this 
code](http://forum.nim-lang.org///pastebin.com/kwzHi9b7) . 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?

Reply via email to