diff options
author | 2023-02-17 13:07:47 +0100 | |
---|---|---|
committer | 2023-02-17 13:07:47 +0100 | |
commit | 871f59f3be640acc8ce2760108a73b8ada846df1 (patch) | |
tree | 64d87114c523930b854b9b177ec219a2a190f125 /glow | |
parent | 32745f472fe00af492551ef5878fc5f570ae24ab (diff) | |
parent | f318e3fdbf88eee08a48b2d398518f8e456edbfb (diff) | |
download | iced-871f59f3be640acc8ce2760108a73b8ada846df1.tar.gz iced-871f59f3be640acc8ce2760108a73b8ada846df1.tar.bz2 iced-871f59f3be640acc8ce2760108a73b8ada846df1.zip |
Merge pull request #1703 from greatest-ape/v0.7-glow-explicit-location
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 ), ), |