X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fglsl%2Fvalidate.cpp;h=7d3d20d1c78eb104c85ac8ef511a099b5115ae5e;hp=6a4b8eb0dc0e34ced99b82fcc08d41c22c569bf0;hb=76cc18518fc8b0b4fa11fda153e7d9b3899ed112;hpb=efbce87192ce73ba577684369f759693dccec67c diff --git a/source/glsl/validate.cpp b/source/glsl/validate.cpp index 6a4b8eb0..7d3d20d1 100644 --- a/source/glsl/validate.cpp +++ b/source/glsl/validate.cpp @@ -834,6 +834,11 @@ void GlobalInterfaceValidator::check_uniform(const Uniform &uni) error(*uni.node, format("Mismatched location %d for uniform '%s'", uni.location, uni.name)); add_info(*i->second->node, format("Previously declared here with location %d", i->second->location)); } + if(i->second->desc_set!=uni.desc_set) + { + error(*uni.node, format("Mismatched descriptor set %d for uniform '%s'", uni.desc_set, uni.name)); + add_info(*i->second->node, format("Previously declared here with descriptor set %d", i->second->desc_set)); + } if(uni.bind_point>=0 && i->second->bind_point>=0 && i->second->bind_point!=uni.bind_point) { error(*uni.node, format("Mismatched binding %d for uniform '%s'", uni.bind_point, uni.name));