- 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

@ -82,8 +82,11 @@ OpenGLFrameBuffer::OpenGLFrameBuffer(void *hMonitor, int width, int height, int
mDebug = std::make_shared<FGLDebug>();
mDebug->Update();
SetGamma();
// Move some state to the framebuffer object for easier access.
hwcaps = gl.flags;
if (gl.legacyMode) hwcaps |= RFL_NO_SHADERS;
glslversion = gl.glslversion;
}
OpenGLFrameBuffer::~OpenGLFrameBuffer()