mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Work around Intel driver bug on Win 8.1 and older
This commit is contained in:
parent
7557a287e5
commit
8b27340b2e
1 changed files with 8 additions and 4 deletions
|
@ -401,8 +401,10 @@ bool COpenGLSLMaterialRenderer::linkProgram()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (maxlen == 0) {
|
if (maxlen == 0) {
|
||||||
os::Printer::log("GLSL (> 2.x): failed to retrieve uniform information", ELL_ERROR);
|
// Intel driver bug that seems to primarily happen on Win 8.1 or older:
|
||||||
return false;
|
// There are >0 uniforms yet the driver reports a max name length of 0.
|
||||||
|
os::Printer::log("GLSL (> 2.x): failed to retrieve uniform information", ELL_WARNING);
|
||||||
|
maxlen = 256; // hope that this is enough
|
||||||
}
|
}
|
||||||
|
|
||||||
// seems that some implementations use an extra null terminator
|
// seems that some implementations use an extra null terminator
|
||||||
|
@ -471,8 +473,10 @@ bool COpenGLSLMaterialRenderer::linkProgram()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (maxlen == 0) {
|
if (maxlen == 0) {
|
||||||
os::Printer::log("GLSL: failed to retrieve uniform information", ELL_ERROR);
|
// Intel driver bug that seems to primarily happen on Win 8.1 or older:
|
||||||
return false;
|
// There are >0 uniforms yet the driver reports a max name length of 0.
|
||||||
|
os::Printer::log("GLSL: failed to retrieve uniform information", ELL_WARNING);
|
||||||
|
maxlen = 256; // hope that this is enough
|
||||||
}
|
}
|
||||||
|
|
||||||
// seems that some implementations use an extra null terminator
|
// seems that some implementations use an extra null terminator
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue