Closed okias closed 11 months ago
Missing braces aside, the patch looks workable. Although if (auto ext = GetStringi(EXTENSIONS, k))
might be cleaner.
but the extensions aren't loaded
They should be loaded a few lines later via the older GetString call.
Anyway, it’s weird the driver reports non-zero NUM_EXTENSIONS
but refuses to give away actual names.
P.S. The spec you wanted is likely https://registry.khronos.org/OpenGL-Refpages/gl4/html/glGetString.xhtml. Unless you actually use OpenGL ES on desktop (Mesa does support that).
Exactly as you write, I think there is different issue with querying.
I compiled some demo with glew and glfw3 and the query works just fine. With irrlicht it doesn't.
The issue I had got fixed by some recent commit; I'll send MR for making this more robust anyway :)
Thanks! Now the code look more C++ :yum:
after compilation of latest minetest + irrlicht I see regression:
8c521939b9a93834df3b1536e1850101f31cb89c regresses on Mesa.
extensions.emplace((char *)GetStringi(EXTENSIONS, k));
return NULL, as it can (looking at the spec [1]). When I encapsulate that withit works, but the extensions aren't loaded (since every call returns NULL).
[1] https://registry.khronos.org/OpenGL-Refpages/es3.0/html/glGetString.xhtml
@numberZero
P.S. also I see lot of GL_Invalid_operations, thou running latest Intel driver.