X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fmaterials%2Frenderpass.cpp;fp=source%2Fmaterials%2Frenderpass.cpp;h=e6a9a0a4145e87e8c2a30246f1d20f96c0228c57;hp=033c43b1955ae56b08ed4dddfc17d6fdef9789f2;hb=22fb2172d1cb59b339f29666946dee6818bb8558;hpb=9549f3401a70ca0359324a3e56e1e334981e5516 diff --git a/source/materials/renderpass.cpp b/source/materials/renderpass.cpp index 033c43b1..e6a9a0a4 100644 --- a/source/materials/renderpass.cpp +++ b/source/materials/renderpass.cpp @@ -263,6 +263,8 @@ void RenderPass::Loader::texunit_named(unsigned, const string &n) void RenderPass::Loader::uniforms() { + if(!obj.shprog || obj.shprog_from_material) + throw runtime_error("Shader is required for uniforms"); obj.ensure_private_shader_data(); load_sub(*obj.shdata); }