diff options
Diffstat (limited to 'glow/src/program.rs')
-rw-r--r-- | glow/src/program.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/glow/src/program.rs b/glow/src/program.rs index 1eb9c535..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 ), ), @@ -54,7 +54,7 @@ impl Version { String::from("#version 120\n#define in varying"), ), // OpenGL 1.1+ - _ => panic!("Incompatible context version: {:?}", version), + _ => panic!("Incompatible context version: {version:?}"), }; log::info!("Shader directive: {}", vertex.lines().next().unwrap()); |