OLD | NEW |
1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <fcntl.h> | 5 #include <fcntl.h> |
6 #include <stdio.h> | 6 #include <stdio.h> |
7 #include <string.h> | 7 #include <string.h> |
8 #include <sys/mman.h> | 8 #include <sys/mman.h> |
9 #include <unistd.h> | 9 #include <unistd.h> |
10 | 10 |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 glAttachShader(program, fragment_shader); | 68 glAttachShader(program, fragment_shader); |
69 glLinkProgram(program); | 69 glLinkProgram(program); |
70 print_info_log(program); | 70 print_info_log(program); |
71 glUseProgram(program); | 71 glUseProgram(program); |
72 | 72 |
73 glDeleteShader(vertex_shader); | 73 glDeleteShader(vertex_shader); |
74 glDeleteShader(fragment_shader); | 74 glDeleteShader(fragment_shader); |
75 | 75 |
76 return program; | 76 return program; |
77 } | 77 } |
OLD | NEW |