A
A
Alexander2018-01-12 14:23:50
macOS
Alexander, 2018-01-12 14:23:50

OpenGL on Mac OS X Sierra does not draw a triangle, what should I do?

I can't figure out what's wrong. In windows, everything works, it doesn’t want to on a poppy (just a window with a black background).
This is what the console outputs:
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

here is the link to the code:
https://codeshare.io/a31drz

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question