Eugene Sandulenko
940b2a20f1
Revert "COMMON: Change way the Singleton instances are instantiated"
...
This reverts commit eefa72afa1
.
With this patch ConfigManager is broken.
2017-07-10 21:17:41 +02:00
Thierry Crozat
eefa72afa1
COMMON: Change way the Singleton instances are instantiated
...
This fixes tons of warnings with clang from a recent xcode version on
macOS (and possibly other systems) complaining that an instantiation
of _singleton is required but no definition is available.
2017-07-10 21:11:20 +02:00
Eugene Sandulenko
050a1cd605
OPENGL: Fix potential crash
2016-05-02 15:19:07 +02:00
Johannes Schickel
17b1124a5a
OPENGL: Do not keep uniform state for nonexistent uniforms.
2016-03-16 20:29:31 +01:00
Johannes Schickel
39100b6132
OPENGL: Do not hardcode any uniform/attribute handling in Shader.
2016-03-16 20:29:31 +01:00
Johannes Schickel
baca885cfc
OPENGL: Let Shader store the uniform state.
2016-03-16 20:29:31 +01:00
Johannes Schickel
5498982a37
OPENGL: Introduce ShaderManager to handle builtin shaders.
2016-03-16 20:29:26 +01:00
Johannes Schickel
2319fcd228
OPENGL: Handle GLES2 and GL shaders uniformly.
...
GLES2 requires precision qualifiers to be set and allows use of precision
qualifiers. For GLES2 we define a default precision now. Since precision
qualifiers are not supported in the GLSL version we use for GL, we
introduce compatibility #defines.
2016-03-16 20:29:26 +01:00
Johannes Schickel
e66e9e44d3
OPENGL: Accelerate palette lookups with shaders.
...
This currently is limited to GL contexts.
2016-03-16 20:29:26 +01:00
Johannes Schickel
8a3eecb73a
OPENGL: Unify shader implementation for GL and GLES2.
2016-03-16 20:29:25 +01:00
Johannes Schickel
fc52f73050
OPENGL: Slightly cleanup programmable pipeline handling.
2016-03-16 20:29:25 +01:00
Johannes Schickel
d029f16799
OPENGL: Handle destruction gracefully when no context is setup.
2016-03-16 20:29:25 +01:00
Johannes Schickel
fee1aa5502
OPENGL: Add support for shaders with GL contexts.
2016-03-16 20:29:25 +01:00
Johannes Schickel
fe88375ff3
OPENGL: Support GLES2 contexts.
2016-03-16 20:29:25 +01:00