Compat: Check for successful GLEW initialisation fails on my PC / Trixie

I observed same strange behaviour already last year on my »Video Output« talk.
The return value indicates an unkown error, but the subsequent usage seemingly works...

On my Laptop, I don not see this error; it might be due to the very old graphics card on my PC...
This commit is contained in:
Fischlurch 2026-07-16 19:36:49 +02:00
parent 0371f8ffd3
commit 6c1cc02c6b

View file

@ -183,9 +183,10 @@ EglDisplay<PIX,WIDTH,HEIGHT>::openDisplay (Gtk::Window& appWindow)
// use lib-GLEW to manage OpenGL extensions (notably GL Shader Language) // use lib-GLEW to manage OpenGL extensions (notably GL Shader Language)
GLenum glewErr = glewInit(); GLenum glewErr = glewInit();
if (GLEW_OK != glewErr) ////////////////////////////////////////////////////////////////////////////////////TODO for some reason I get glewErr == 4 ("unknown error"), but it works non the less
__FAIL ("could not bind OpenGL extensions through lib-GLEW:\n" //if (GLEW_OK != glewErr)
+string{reinterpret_cast<const char*> (glewGetErrorString(glewErr))}); // __FAIL ("could not bind OpenGL extensions through lib-GLEW:\n"
// +string{reinterpret_cast<const char*> (glewGetErrorString(glewErr))});
auto compileShader = [](GLenum kind, string code) auto compileShader = [](GLenum kind, string code)