For now its disabled for scons so wrap glsl cache calls in a
define conditional.
return;
}
+#ifdef ENABLE_SHADER_CACHE
/* If transform feedback used on the program then compile all shaders. */
bool skip_cache = false;
if (prog->TransformFeedback.NumVarying > 0) {
if (!skip_cache && shader_cache_read_program_metadata(ctx, prog))
return;
+#endif
void *mem_ctx = ralloc_context(NULL); // temporary linker context
}
}
+#ifdef ENABLE_SHADER_CACHE
if (prog->data->LinkStatus)
shader_cache_write_program_metadata(ctx, prog);
+#endif
}
} /* extern "C" */