Why does OpenGL drawing fail when vertex attrib array zero is disabled?
问题 I was having extreme trouble getting a vertex shader of mine to run under OpenGL 3.3 core on an ATI driver: #version 150 uniform mat4 graph_matrix, view_matrix, proj_matrix; uniform bool align_origin; attribute vec2 graph_position; attribute vec2 screen_position; attribute vec2 texcoord0; attribute vec4 color; varying vec2 texcoord0_px; varying vec4 color_px; void main() { // Pick the position or the annotation position vec2 pos = graph_position; // Transform the coordinates pos = vec2(graph