glGenTextures return texture id is 0 with creating off-screen egl context on windows 10 desktop
Hi @Dav1dde 
When I used glad and egl library by vcpkg install and linked well into my library. But some glad functions cannot work for requiring gpu resources, like textures and buffers as above.
Codes as follows :

1.create egl context with displayer and make current this off-screen context:
EGLint egl_maj_vers = 0, egl_min_vers = 0;
EGLint num_configs;
EGLBoolean success = EGL_FALSE;
egl_display_ = eglGetDisplay(EGL_DEFAULT_DISPLAY);
if (egl_display_ != EGL_NO_DISPLAY) {
success = eglInitialize(egl_display_, &egl_maj_vers, &egl_min_vers);
}
if (!eglBindAPI(EGL_OPENGL_ES_API))
LOG_INFO("Failed to bind API!");
if (success != EGL_FALSE)
success = eglGetConfigs(egl_display_, NULL, 0, &num_configs);
if (success != EGL_FALSE && num_configs > 0) {
// choose the first config, i.e. best config
success = eglChooseConfig(egl_display_, conf_attr, &egl_conf_, 1, &num_configs);
}
// create a pixelbuffer surface
egl_surface_ = eglCreatePbufferSurface(egl_display_, egl_conf_, surface_attr);
egl_context_ = eglCreateContext(egl_display_, egl_conf_, EGL_NO_CONTEXT, ctx_attr);
eglMakeCurrent(egl_display_, egl_surface_, egl_surface_, egl_context_);

2.And then in this context thread (same one), create texture failed with gl error :1282 INVALID_OPERATION
uint32_t textureHandles[1] = {0 };
glGenTextures(1, textureHandles);
texture_id_ = textureHandles[0];
glBindTexture(target_, texture_id_);
GLenum erp = glGetError();

ps: My desktop is windows 10 with Intel(R) UHD Graphics 630 , and NVDIA GeForce RTX2070