- use layout binding qualifiers on uniform buffers when GLSL version >= 4.2

This has no performance benefits but allows checking shader generation correctness without having to implement Vulkan first.
This commit is contained in:
Christoph Oelckers 2018-06-13 13:16:07 +02:00
commit 59827cd601
6 changed files with 66 additions and 14 deletions

View file

@ -225,6 +225,7 @@ void gl_LoadExtensions()
gl.flags |= RFL_NO_CLIP_PLANES; // gl_ClipDistance is horribly broken on ATI GL3 drivers for Windows.
}
#endif
gl.glslversion = 3.31f; // Force GLSL down to 3.3.
}
else if (gl_version < 4.5f)
{