Add ricardoquesada info

This commit is contained in:
Vladimir Perminov 2016-07-27 18:48:10 +03:00
parent 3734668d17
commit 5498bdb32b
1 changed files with 5 additions and 0 deletions

View File

@ -565,6 +565,11 @@ bool GLProgram::link()
glLinkProgram(_program); glLinkProgram(_program);
// Calling glGetProgramiv(...GL_LINK_STATUS...) will force linking of the program at this moment.
// Otherwise, they might be linked when they are used for the first time. (I guess this depends on the driver implementation)
// So it might slow down the "booting" process on certain devices. But, on the other hand it is important to know if the shader
// linked succesfully. Some shaders might be downloaded in runtime so, release version should have this check.
// For more info, see Github issue #16231
glGetProgramiv(_program, GL_LINK_STATUS, &status); glGetProgramiv(_program, GL_LINK_STATUS, &status);
if (status == GL_FALSE) if (status == GL_FALSE)