[SDL] Triangle will not render

Justin Agrell justin at u4e.us
Tue Sep 16 18:29:31 PDT 2014


I'm getting started with SDL2 and modern OpenGL.
I am having trouble getting the triangle to render in my template:

source code here: http://u4e.us/c/main.c

This may be due to my laptop only supporting OpenGL 3.1.
> glxinfo |grep "Core Profile"
OpenGL core profile version string: 3.1 (Core Profile) Mesa 9.1.8

It also may be because I have been staring at it for too long and am
missing something simple.

Any help would be appreciated.


More information about the SDL mailing list