We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9265f2b commit 5cdc21bCopy full SHA for 5cdc21b
1 file changed
modules/juce_opengl/opengl/juce_OpenGLGraphicsContext.cpp
@@ -955,7 +955,7 @@ class SavedBinding
955
GLuint current{};
956
};
957
958
- Values values = []
+ static Values getInitialValues()
959
{
960
if (! Traits::predicate())
961
return Values{};
@@ -968,7 +968,9 @@ class SavedBinding
968
Traits::bind (current);
969
970
return Values { previous, current };
971
- }();
+ }
972
+
973
+ Values values = getInitialValues();
974
975
976
//==============================================================================
0 commit comments