mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
OpenGL: Fix shader compilation on Ubuntu 18.04
Previously, we were always adding a #version 150 directive to shaders when the GLSL version was higher than 1.2, which could cause compilation to fail on platforms with GLSL versions between 1.2 and 1.5.
This commit is contained in:
parent
024a0b4a20
commit
f0b515cc73
4 changed files with 125 additions and 14 deletions
|
|
@ -4,6 +4,26 @@ JUCE breaking changes
|
|||
Develop
|
||||
=======
|
||||
|
||||
Change
|
||||
------
|
||||
The JUCE_GLSL_VERSION preprocessor definition has been removed.
|
||||
|
||||
Possible Issues
|
||||
---------------
|
||||
Code which used this definition will no longer compile.
|
||||
|
||||
Workaround
|
||||
----------
|
||||
Use OpenGLHelpers::getGLSLVersionString to retrieve a version string which is
|
||||
consistent with the capabilities of the current OpenGL context.
|
||||
|
||||
Rationale
|
||||
---------
|
||||
A compile-time version string is not very useful, as OpenGL versions and
|
||||
capabilities can change at runtime. Replacing this macro with a function allows
|
||||
querying the capabilities of the current context at runtime.
|
||||
|
||||
|
||||
Change
|
||||
------
|
||||
The minimum support CMake version is now 3.15.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue