mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-10 00:28:20 +00:00
[client] egl: add checking to egl_shader_get_uniform_location
This commit is contained in:
parent
43d08df6b3
commit
73da86ac0e
@ -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);
|
||||
}
|
Loading…
Reference in New Issue
Block a user