Now it's possible to add a preamble to the compiled program, so there can be just one program with #ifdef's inside and the small variants can be selected using #define in the preamble instead of having several almost identical programs.
df290c6 make it possible to easily have variants of glsl programs
include/vcl/opengl/OpenGLContext.hxx | 14 ++++++++++----
include/vcl/opengl/OpenGLHelper.hxx | 2 +-
vcl/inc/opengl/program.hxx | 2 +-
vcl/inc/openglgdiimpl.hxx | 2 +-
vcl/opengl/gdiimpl.cxx | 4 ++--
vcl/opengl/program.cxx | 4 ++--
vcl/source/opengl/OpenGLContext.cxx | 26 +++++++++++++++++++++-----
vcl/source/opengl/OpenGLHelper.cxx | 6 +++++-
8 files changed, 43 insertions(+), 17 deletions(-)
Upstream: cgit.freedesktop.org