OpenGL Shader Version Error

I am using Visual Studio 2013, but working under the Visual Studio 2010 compiler.

I am running Windows 8 in bootcamp on a Macbook Pro with intel iris pro 5200 graphics.

I have a very simple vertex and fragment shader, I just show simple primitives in the window, but I get warnings in the console stating ..

OpenGL Debug Output: Source (Shader Comiler), type (other), priority (medium), GLSL compilation warning for shader 3, "": WARNING: -1: 65535: #version: version number deprecated in the OGL context driver 3.0

Does anyone know how to get rid of these annoying errors.?

Vertex Shader Code:

#version 330 core

uniform mat4 modelMatrix;
uniform mat4 viewMatrix;
uniform mat4 projMatrix;

in  vec3 position;
in  vec2 texCoord;
in  vec4 colour;

out Vertex  {
    vec2 texCoord;
    vec4 colour;
} OUT;



void main(void) {
    gl_Position     = (projMatrix * viewMatrix * modelMatrix) * vec4(position, 1.0);

    OUT.texCoord    = texCoord;
    OUT.colour      = colour;
}

Frag shader code

#version 330 core

in Vertex   {
    vec2 texCoord;
    vec4 colour;
} IN;

out vec4 color;

void main() {   
    color= IN.colour;

    //color= vec4(1,1,1,1);
}
+3
source share
1 answer

, Intel , . #version GL 3.0. , -, GL 3.2, core ( ) compatibility.

, . , OpenGL - , . . AMD, , , . NV , ... Intel, -, .

, , OpenGL 3.0, GLSL 3.30. , , - .

#version 130? , (, in Vertex { ...) , , , , - .


, . # 3 . , 0, . 2 , # 3 , 4- .

, , ?

+1
source

All Articles