]> git.tdb.fi Git - libs/gl.git/blobdiff - source/resources.cpp
Generate the entire shaderlib into a single file
[libs/gl.git] / source / resources.cpp
index 48e986cea064b2742eadf3d2625f418ccf1cef24..8f3b4b8ba29fd3c49d9039d7747f3099ec821d8e 100644 (file)
@@ -23,7 +23,7 @@ using namespace std;
 namespace Msp {
 namespace GL {
 
-extern const char singlepass_glsl_data[];
+void init_shaderlib(DataFile::BuiltinSource &);
 
 Resources::Resources():
        default_tex_filter(SGIS_generate_mipmap ? LINEAR_MIPMAP_LINEAR : LINEAR),
@@ -56,7 +56,7 @@ DataFile::BuiltinSource &Resources::get_builtins()
 
        if(!init_done)
        {
-               builtins.add_object("singlepass.glsl", singlepass_glsl_data);
+               init_shaderlib(builtins);
                init_done = true;
        }