How to limit GLSL to the main language?

I wrote shaders as follows:

#version 330 core
in vec2 tex_position;

uniform sampler2D texture_in;

void main(){
  gl_FragColor = texture(texture_in, vec2(tex_position.x, 1.0 - tex_position.y));
}

It compiles and works fine, but my friend told me (using the same version of OpenGL / GLSL on another computer) that it does not work because it gl_FragColorwas deleted. How to force these shaders to use only standard GLSL 330, and not non-standard / obsolete things?

+4
source share
1 answer

, , . , . Legacy. Core Profile ( 3.2). GLSL ( 1.50), .

OS X, : OpenGL - ARB

0

All Articles