buffer mesh working

This commit is contained in:
2020-03-10 13:33:32 -04:00
parent a0803a3727
commit 54ea5dbd53
5 changed files with 35 additions and 66 deletions

View File

@@ -78,7 +78,7 @@ namespace cgl {
set_source(src);
if (!compile())
throw shader_error(get_info_log());
throw shader_error<mode>(get_info_log());
}
static shader<mode> file(const std::string &name) {
@@ -188,7 +188,7 @@ namespace cgl {
attach(sh);
if (!link())
throw shader_error(get_info_log());
throw shader_error<mode>(get_info_log());
detach(sh);
}