Skip to content

Commit 2fb72db

Browse files
author
beryll1um
committed
fix(shader): GLchar* typecast fixed
1 parent d90a266 commit 2fb72db

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ addons:
1212
- g++-5
1313

1414
script:
15-
- cmake .
16-
- cmake --build . -- -j2
15+
- cmake .
16+
- cmake --build . -- -j2

src/graphics/shader.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ void Shader::throw_if_error(u32 id, u32 type) {
138138
string error;
139139
error.resize(size);
140140

141-
glGetProgramInfoLog(_id, size, 0, error.data());
141+
glGetProgramInfoLog(_id, size, 0, (GLchar*)error.data());
142142

143143
throw Exceptions::initialization_failed(error.c_str());
144144
}
@@ -154,7 +154,7 @@ void Shader::throw_if_error(u32 id, u32 type) {
154154
string error;
155155
error.resize(size);
156156

157-
glGetShaderInfoLog(_id, size, 0, error.data());
157+
glGetShaderInfoLog(_id, size, 0, (GLchar*)error.data());
158158

159159
throw Exceptions::initialization_failed(error.c_str());
160160
}

0 commit comments

Comments
 (0)