"glLinkProgram"));
}
-#if defined(HAVE_SHA1)
/**
* Generate a SHA-1 hash value string for given source string.
*/
return buffer;
}
-#endif /* HAVE_SHA1 */
/**
* Called via glShaderSource() and glShaderSourceARB() API functions.
GLcharARB *source;
struct gl_shader *sh;
-#if defined(HAVE_SHA1)
GLcharARB *replacement;
-#endif /* HAVE_SHA1 */
sh = _mesa_lookup_shader_err(ctx, shaderObj, "glShaderSourceARB");
if (!sh)
source[totalLength - 1] = '\0';
source[totalLength - 2] = '\0';
-#if defined(HAVE_SHA1)
/* Dump original shader source to MESA_SHADER_DUMP_PATH and replace
* if corresponding entry found from MESA_SHADER_READ_PATH.
*/
free(source);
source = replacement;
}
-#endif /* HAVE_SHA1 */
shader_source(sh, source);