diff --git a/client/renderers/egl_shader.c b/client/renderers/egl_shader.c index ab45670c..34bf2789 100644 --- a/client/renderers/egl_shader.c +++ b/client/renderers/egl_shader.c @@ -215,5 +215,11 @@ void egl_shader_associate_textures(EGL_Shader * this, const int count) GLint egl_shader_get_uniform_location(EGL_Shader * this, const char * name) { + if (!this->shader) + { + DEBUG_ERROR("Shader program has not been compiled"); + return 0; + } + return glGetUniformLocation(this->shader, name); } \ No newline at end of file