diff options
| author | Charles <sircharlesaze@gmail.com> | 2020-05-13 11:48:22 +0200 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2020-05-13 11:48:22 +0200 |
| commit | 5635d61927b2fc864d92f9f7b40cdb164eeab275 (patch) | |
| tree | 5a9fa7c0cd9a4e662b0ad63d87143890880af173 /src/shader.c | |
| parent | 723c4602c6ec9b74e841501754e651ef359f6385 (diff) | |
| download | scop-5635d61927b2fc864d92f9f7b40cdb164eeab275.tar.gz scop-5635d61927b2fc864d92f9f7b40cdb164eeab275.tar.bz2 scop-5635d61927b2fc864d92f9f7b40cdb164eeab275.zip | |
Added model center translation
Diffstat (limited to 'src/shader.c')
| -rw-r--r-- | src/shader.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shader.c b/src/shader.c index dac76c8..3a31d4e 100644 --- a/src/shader.c +++ b/src/shader.c @@ -6,7 +6,7 @@ /* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/05/11 09:35:54 by charles #+# #+# */ -/* Updated: 2020/05/11 21:30:29 by charles ### ########.fr */ +/* Updated: 2020/05/12 21:23:06 by charles ### ########.fr */ /* */ /* ************************************************************************** */ @@ -26,7 +26,7 @@ static unsigned int st_compile(char *filepath, unsigned int type) if (ft_getfile(open(filepath, O_RDONLY), &file) == -1) return (0); GL_CALL(id = glCreateShader(type)); - GL_CALL(glShaderSource(id, 1, (const char**)&file.data, NULL)); + GL_CALL(glShaderSource(id, 1, (const char**)&file.data, (int*)&file.size)); free(file.data); GL_CALL(glCompileShader(id)); GL_CALL(glGetShaderiv(id, GL_COMPILE_STATUS, &result)); |
