Lines Matching refs:program
78 GLuint program = glCreateProgram();
79 if (program)
81 glAttachShader(program, vertexShader);
83 glAttachShader(program, pixelShader);
86 glLinkProgram(program);
88 glGetProgramiv(program, GL_LINK_STATUS, &linkStatus);
95 glGetProgramiv(program, GL_INFO_LOG_LENGTH, &bufLength);
101 glGetProgramInfoLog(program, bufLength, NULL, buf);
102 LOGE("Could not link program:\n%s\n", buf);
106 glDeleteProgram(program);
107 program = 0;
110 return program;