I have a problem when compiling a simple vertex shader in OpenGL, I get the following error messages:
- error(#106) Version number not supported by GL2
- error(#279) Invalid layout qualifier 'location'
I assume that I must be using the wrong version of GL2, but I have no idea how to find my version number or where to go for an upgrade (and yes I tried to search for an answer.) Attached is a copy of my shader code just for reference and my openGL information.
#version 330 core
layout(location = 0) in vec3 Position;
void main() {
gl_Position.xyz = Position;
}
- Vendor: ATI Technologies Inc.
- Renderer: ATI Radeon HD 5700 Series
- Version: 3.2.9756 Compatibility Profile Context
#version 330mean you're requiring GLSL 3.3, and therefore OpenGL 3.3? Check to make sure that you're requesting an OpenGL context of a sufficiently-high version; there were a lot of changes between 2.x and 3.x which were NOT backwards-compatible. - fluffy