WindowPtr and opengl context ??

Many thanks Mario,

I finally solved my problem using only opengl commands. I will try the solutions you advised to see if they could simplify the code.

Thanks