Skip to content

Commit 6d0ed1a

Browse files
committed
Modify loadshader to use strings rather than char.
1 parent d16a4ed commit 6d0ed1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shader.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ This function is adapted from OpenGL 4.0 Shading Language Cookbook by David Wolf
127127

128128
bool Shader::LoadShader(string file_name, GLuint shader_id)
129129
{
130-
assert(file_name != NULL);
130+
assert(file_name.length() > 0);
131131
if (GLReturnedError("Shader::LoadShader - on entrance"))
132132
return false;
133133

0 commit comments

Comments
 (0)