I am trying to write a simple vertex shader and fragment shader. I am using SDL2 as my window manager and I am following this tutorial: https://learnopengl.com/Getting-started/Hello-Triangle
I've gotten to the part after writing the vertex shader to check if the shader had compiled properly. I did not for me, instead I got this output:
ERROR::SHADER::VERTEX::COMPILATION_FAILED
ERROR: 0:1: '' : version '330' is not supported
ERROR: 0:1: '' : syntax error: #version
ERROR: 0:2: 'layout' : syntax error: syntax error
I've tried changing the version but I have to have a version that has a core profile.
glGetString(GL_VERSION)
outputs: 2.1 Metal - 83
Am I correct in assuming that the 2.1 means that the OpenGL version, and therefore cannot use core profiles and the 330 version?