1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-09 23:34:20 +00:00

OpenGLDemo: Fix GCC 14 compilation issue

This commit is contained in:
attila 2024-07-01 12:50:55 +02:00
parent adcdaad34f
commit cddd850d8a

View file

@ -1120,7 +1120,8 @@ private:
void selectPreset (int preset)
{
const auto& p = OpenGLUtils::getPresets()[preset];
const auto presets = OpenGLUtils::getPresets();
const auto& p = presets[preset];
vertexDocument .replaceAllContent (p.vertexShader);
fragmentDocument.replaceAllContent (p.fragmentShader);