Le Philousophe
f7ca853d34
OPENGL: Make sure shader has been created before cloning it
2023-03-19 09:46:03 +01:00
Cameron Cawley
863988fee4
OPENGL: Add proper error checking to the Shader class
2022-06-29 22:37:38 +01:00
Le Philousophe
98c306376f
OPENGL: Merge both OpenGL shaders objects
2022-06-26 18:32:10 +02:00
Le Philousophe
4ab044a254
OPENGL: Merge both OpenGL contexts
2022-06-26 18:32:10 +02:00
Cameron Cawley
a4c99343b3
OPENGL: Fix shader compilation with older Android GPU drivers
2022-03-06 11:09:50 +01:00
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+
2021-12-26 18:48:43 +01:00
Cameron Cawley
35e12e2491
OPENGL: Lower the minimum GLSL version to 1.10
2021-12-05 21:53:07 +01:00
Eugene Sandulenko
5e7fe2dc57
JANITORIAL: Replace spaces in indentation with tabs
2021-04-15 21:20:36 +02:00
Filippos Karapetis
d524d36a6a
OPENGL: Specify a GLSL version tag, and rename reserved keywords
...
The GLSL version code has been taken from ResidualVM. The variable
'texture' is now a reserved keyword in GLSL 3.00, so it has been
renamed. This fixes compilation issues in AmigaOS4 (PR 1554).
2019-07-14 16:10:55 +03:00
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