diff options
author | 2023-02-13 22:34:13 +0100 | |
---|---|---|
committer | 2023-02-13 22:34:13 +0100 | |
commit | f318e3fdbf88eee08a48b2d398518f8e456edbfb (patch) | |
tree | c94a71df3778c5ca9c53a128702fdc2c5a7e14de /glow | |
parent | 92ba26b8a168b1d58b8330d84753c5ab7e116f17 (diff) | |
download | iced-f318e3fdbf88eee08a48b2d398518f8e456edbfb.tar.gz iced-f318e3fdbf88eee08a48b2d398518f8e456edbfb.tar.bz2 iced-f318e3fdbf88eee08a48b2d398518f8e456edbfb.zip |
glow: enable GL_ARB_explicit_attrib_location to fix crashes
Diffstat (limited to 'glow')
-rw-r--r-- | glow/src/program.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/glow/src/program.rs b/glow/src/program.rs index e2155222..95437fcd 100644 --- a/glow/src/program.rs +++ b/glow/src/program.rs @@ -17,17 +17,17 @@ impl Version { ) { // OpenGL 3.0+ (3, 0 | 1 | 2, false) => ( - format!("#version 1{}0", version.minor + 3), + format!("#version 1{}0\n#extension GL_ARB_explicit_attrib_location : enable", version.minor + 3), format!( - "#version 1{}0\n#define HIGHER_THAN_300 1", + "#version 1{}0\n#extension GL_ARB_explicit_attrib_location : enable\n#define HIGHER_THAN_300 1", version.minor + 3 ), ), // OpenGL 3.3+ (3 | 4, _, false) => ( - format!("#version {}{}0", version.major, version.minor), + format!("#version {}{}0\n#extension GL_ARB_explicit_attrib_location : enable", version.major, version.minor), format!( - "#version {}{}0\n#define HIGHER_THAN_300 1", + "#version {}{}0\n#extension GL_ARB_explicit_attrib_location : enable\n#define HIGHER_THAN_300 1", version.major, version.minor ), ), |