Skip to content

Commit 008ad0e

Browse files
committed
c++ style cast in shader compiler, closes #35
1 parent 76adc19 commit 008ad0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/engine/render/shader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ static void compileglslshader(const Shader &s, GLenum type, GLuint &obj, const c
235235
parts[numparts++] = modsource ? modsource : source;
236236
//end glsl 1.4
237237
obj = glCreateShader(type);
238-
glShaderSource(obj, numparts, (const GLchar **)parts, nullptr);
238+
glShaderSource(obj, numparts, static_cast<const GLchar **>(parts), nullptr);
239239
glCompileShader(obj);
240240
GLint success;
241241
glGetShaderiv(obj, GL_COMPILE_STATUS, &success);

0 commit comments

Comments
 (0)