Skip to content

Commit

Permalink
Merge pull request #1703 from greatest-ape/v0.7-glow-explicit-location
Browse files Browse the repository at this point in the history
glow: enable GL_ARB_explicit_attrib_location to fix crashes
  • Loading branch information
hecrj committed Feb 17, 2023
2 parents 32745f4 + f318e3f commit 871f59f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions glow/src/program.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
),
),
Expand Down

0 comments on commit 871f59f

Please sign in to comment.