OpenGL в Mac OS X Sierra не рисует треугольник, что делать?

Не могу понять в чем дело. В windows всё работает, на маке не хочет (просто окно с черным фоном).
Вот что выдает консоль:

2018-01-12 16:17:59.613642+0500 test[5837:1493716] [General] ERROR: Setting as the first responder for window , but it is in a different window ((null))! This would eventually crash when the view is freed. The first responder will be set to nil.
(
0 AppKit 0x00007fff9101d9cf -[NSWindow _validateFirstResponder:] + 557
1 AppKit 0x00007fff9079874c -[NSWindow _setFirstResponder:] + 31
2 AppKit 0x00007fff908409ce -[NSWindow _realMakeFirstResponder:] + 406
3 AppKit 0x00007fff908407e4 -[NSWindow makeFirstResponder:] + 123
4 libglfw.3.dylib 0x0000000100306895 _glfwPlatformCreateWindow + 631
5 libglfw.3.dylib 0x0000000100302430 glfwCreateWindow + 487
6 test 0x0000000100001759 main + 153
7 libdyld.dylib 0x00007fffa8858235 start + 1
8 ??? 0x0000000000000001 0x0 + 1
)
4.1 ATI-1.51.8


вот ссылка на код:
https://codeshare.io/a31drz
  • Вопрос задан
  • 77 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы