# glGetUniformLocation returning -1 on OpenGL 4.6

I’m writing a small "engine", and the time has finally come to implement transformations. However, when I try to glGetUniformLocation, it return -1. Here is my rendering method: void GFXRenderer::submit(EntityBase* _entity, GPUProgram _program) { if(_entity->mesh.has_value()) { mat4 mod_mat(1.0); //mod_mat = translate(mod_mat, _entity->transform.position); /* mod_mat = scale(mod_mat, _entity->transform.scale); mod_mat = rotate(mod_mat, radians(_entity->transform.rotation.x), vec3(1.0, 0.0, 0.0)); mod_mat… Read More glGetUniformLocation returning -1 on OpenGL 4.6