- if (not wglMakeCurrent(h_DC, h_RC)) then
- begin
- glKillWnd(Fullscreen);
- MessageBox(0, 'Unable to activate OpenGL rendering context', 'Error', MB_OK or MB_ICONERROR);
- Result := False;
- Exit;
- end;