summaryrefslogtreecommitdiffstats
path: root/glow
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2023-02-17 13:07:47 +0100
committerLibravatar GitHub <noreply@github.com>2023-02-17 13:07:47 +0100
commit871f59f3be640acc8ce2760108a73b8ada846df1 (patch)
tree64d87114c523930b854b9b177ec219a2a190f125 /glow
parent32745f472fe00af492551ef5878fc5f570ae24ab (diff)
parentf318e3fdbf88eee08a48b2d398518f8e456edbfb (diff)
downloadiced-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.rs8
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
),
),