shader: Make Cg load calls fail if compiling without Cg toolkit

This commit is contained in:
rdb 2020-05-05 16:54:50 +02:00
parent 9ad4e4586c
commit 7d94f601db

View File

@ -2525,6 +2525,7 @@ read(const ShaderFile &sfile, BamCacheRecord *record) {
#else
shader_cat.error()
<< "Tried to load Cg shader, but no Cg support is enabled.\n";
return false;
#endif
} else {
shader_cat.error()
@ -2618,6 +2619,7 @@ load(const ShaderFile &sbody, BamCacheRecord *record) {
#else
shader_cat.error()
<< "Tried to load Cg shader, but no Cg support is enabled.\n";
return false;
#endif
} else {
shader_cat.error()