Don't load state tracker if not necessary.

This commit is contained in:
Themaister 2013-04-16 22:30:28 +02:00
parent 9aab315045
commit b2fba94850

View File

@ -544,6 +544,9 @@ static bool load_textures(void)
static bool load_imports(void)
{
if (!cg_shader->variables)
return true;
struct state_tracker_info tracker_info = {0};
for (unsigned i = 0; i < cg_shader->variables; i++)