glium icon indicating copy to clipboard operation
glium copied to clipboard

glium has triggered an OpenGL error during initialization

Open axolotl-inc opened this issue 5 years ago • 1 comments

When compiling and running a simple program that draws a single triangle to the screen, glium throws this error, complaining about something to do with invalid qualifiers:

glium has triggered an OpenGL error during initialization. Please report this error: https://github.com/glium/glium/issues thread 'main' panicked at 'called Result::unwrap() on an Err value: CompilationError("0:3(2): error: in\' qualifier in declaration of position' only valid for function parameters in GLSL 1.20\n", Vertex)', src/main.rs:44:103 note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

I hope someone has a fix for this, and thank you in advance.

axolotl-inc avatar Apr 18 '21 17:04 axolotl-inc

It sounds like there's in shader compilation. What's the source of the shader you're trying to compile?

fayalalebrun avatar May 12 '22 07:05 fayalalebrun

Yeah does sound like a problem with the shader, if it's still a problem just reopen this issue and post the shader/program then we can figure out what's the cause.

Melchizedek6809 avatar Apr 16 '23 01:04 Melchizedek6809