Lines Matching refs:program
138 // Create a program object given vertex and pixels shader source
140 GLuint program = glCreateProgram();
141 if (program == 0) {
142 ALOGE("Failed to allocate program object\n");
146 // Compile the shaders and bind them to this program
150 glDeleteProgram(program);
156 glDeleteProgram(program);
160 glAttachShader(program, vertexShader);
161 glAttachShader(program, pixelShader);
163 // Link the program
164 glLinkProgram(program);
166 glGetProgramiv(program, GL_LINK_STATUS, &linked);
169 ALOGE("Error linking program.\n");
171 glGetProgramiv(program, GL_INFO_LOG_LENGTH, &size);
176 glGetProgramInfoLog(program, size, nullptr, infoLog);
181 glDeleteProgram(program);
187 return program;
297 // Create the shader program for our simple pipeline
300 ALOGE("Failed to build shader program: %s", getEGLError());