]> git.tdb.fi Git - libs/gl.git/blobdiff - source/materials/renderpass.cpp
Use specialization constants in the builtin material shaders
[libs/gl.git] / source / materials / renderpass.cpp
index fb092624b756c06ff463cdb34097b458cdd15158..5ee50f8a1726b39cf986740db7326c699281f2d6 100644 (file)
@@ -77,7 +77,7 @@ void RenderPass::maybe_create_material_shader(DataFile::Collection *coll)
                shprog.keep();
        }
        else
-               shprog = material->create_compatible_shader();
+               throw invalid_operation("no collection");
 
        if(shdata)
                shdata = new ProgramData(*shdata, shprog.get());