Fix T45860, missing extension in GLSL after recent own fix.

This commit is contained in:
Antonis Ryakiotakis 2015-08-23 18:20:08 +03:00
parent 8444f7ba2b
commit 25bb5cb30c
Notes: blender-bot 2023-02-14 08:45:06 +01:00
Referenced by issue #45887, Viewport not entering rendered shading
Referenced by issue #45860, Material and matcap views are not showing correctly (GPU shader compilation error).
1 changed files with 2 additions and 0 deletions

View File

@ -1558,6 +1558,8 @@ static void gpu_shader_standard_extensions(char defines[MAX_EXT_DEFINE_LENGTH],
"#extension GL_ARB_gpu_shader5 : enable\n"
"#extension GL_ARB_explicit_attrib_location : require\n");
}
else if (GPU_bicubic_bump_support())
strcat(defines, "#extension GL_ARB_texture_query_lod: enable\n");
#else
/* need this extension for high quality bump mapping */
if (GPU_bicubic_bump_support())