From a7c57e98ce577ebd54e0705193945f0ba879fd7a Mon Sep 17 00:00:00 2001 From: Ichthyostega Date: Thu, 16 Jul 2026 19:36:49 +0200 Subject: [PATCH] Compat: Check for successful GLEW initialisation fails on my PC / Trixie MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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... --- FrOSCon26/examples/egl-display.hpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/FrOSCon26/examples/egl-display.hpp b/FrOSCon26/examples/egl-display.hpp index 941427c..753e423 100644 --- a/FrOSCon26/examples/egl-display.hpp +++ b/FrOSCon26/examples/egl-display.hpp @@ -183,9 +183,10 @@ EglDisplay::openDisplay (Gtk::Window& appWindow) // use lib-GLEW to manage OpenGL extensions (notably GL Shader Language) GLenum glewErr = glewInit(); - if (GLEW_OK != glewErr) - __FAIL ("could not bind OpenGL extensions through lib-GLEW:\n" - +string{reinterpret_cast (glewGetErrorString(glewErr))}); +////////////////////////////////////////////////////////////////////////////////////TODO for some reason I get glewErr == 4 ("unknown error"), but it works non the less +//if (GLEW_OK != glewErr) +// __FAIL ("could not bind OpenGL extensions through lib-GLEW:\n" +// +string{reinterpret_cast (glewGetErrorString(glewErr))}); auto compileShader = [](GLenum kind, string code)