Why does this GLSL shader work fine with a GeForce but flickers strangely on an Intel HD 4000?
问题 Using OpenGL 3.3 core profile, I'm rendering a full-screen "quad" (as a single oversized triangle) via gl.DrawArrays(gl.TRIANGLES, 0, 3) with the following shaders. Vertex shader: #version 330 core #line 1 vec4 vx_Quad_gl_Position () { const float extent = 3; const vec2 pos[3] = vec2[](vec2(-1, -1), vec2(extent, -1), vec2(-1, extent)); return vec4(pos[gl_VertexID], 0, 1); } void main () { gl_Position = vx_Quad_gl_Position(); } Fragment shader: #version 330 core #line 1 out vec3 out_Color;