Searched refs:shader (Results 1 – 2 of 2) sorted by relevance
/hardware/libhardware/tests/hwc/ |
D | util.c | 49 GLuint shader; in load_shader() local 51 if (!(shader = glCreateShader(shaderType))) in load_shader() 54 glShaderSource(shader, 1, &src, NULL); in load_shader() 55 glCompileShader(shader); in load_shader() 56 glGetShaderiv(shader, GL_COMPILE_STATUS, &status); in load_shader() 59 return shader; in load_shader() 61 glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &len); in load_shader() 65 glGetShaderInfoLog(shader, len, NULL, msg); in load_shader() 71 glDeleteShader(shader); in load_shader()
|
/hardware/ti/omap4-aah/test/CameraHal/ |
D | camera_test_surfacetexture.cpp | 419 GLuint shader = glCreateShader(shaderType); in loadShader() local 421 if (shader) { in loadShader() 422 glShaderSource(shader, 1, &pSource, NULL); in loadShader() 424 glCompileShader(shader); in loadShader() 427 glGetShaderiv(shader, GL_COMPILE_STATUS, &compiled); in loadShader() 431 glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &infoLen); in loadShader() 436 glGetShaderInfoLog(shader, infoLen, NULL, buf); in loadShader() 443 glGetShaderInfoLog(shader, 0x1000, NULL, buf); in loadShader() 448 glDeleteShader(shader); in loadShader() 449 shader = 0; in loadShader() [all …]
|