Add SurfaceFlags, and more formatting :)
This commit is contained in:
@@ -238,7 +238,6 @@ static GLuint shader_compile(const char *shaderContents, size_t shaderContentsLe
|
||||
|
||||
static GLuint shader_load(const char *shaderContents)
|
||||
{
|
||||
GLuint result;
|
||||
GLuint vert = shader_compile(shaderContents, strlen(shaderContents), GL_VERTEX_SHADER);
|
||||
GLuint frag = shader_compile(shaderContents, strlen(shaderContents), GL_FRAGMENT_SHADER);
|
||||
|
||||
@@ -249,7 +248,7 @@ static GLuint shader_load(const char *shaderContents)
|
||||
glLinkProgram(ref);
|
||||
glDetachShader(ref, vert);
|
||||
glDetachShader(ref, frag);
|
||||
result = ref;
|
||||
GLuint result = ref;
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user