2008/7/1 Massimo Del Fedele <max at veneto.com>: > + if(NtCurrentTeb()->glContext == NULL) > + return NULL; > + Alexandre said on IRC that you should probably use wglGetCurrentContext() there, rather than using NtCurrentTeb() directly.