Skip to content

glad/egl.h missing when generating OpenGL ES #519

@silentptr

Description

@silentptr

Hi,

I just generated GLAD with the following settings:

/**
 * Loader generated by glad 2.0.8 on Mon Aug 18 01:10:24 2025
 *
 * SPDX-License-Identifier: (WTFPL OR CC0-1.0) AND Apache-2.0
 *
 * Generator: C/C++
 * Specification: gl
 * Extensions: 0
 *
 * APIs:
 *  - gles2=3.1
 *
 * Options:
 *  - ALIAS = False
 *  - DEBUG = False
 *  - HEADER_ONLY = False
 *  - LOADER = True
 *  - MX = True
 *  - ON_DEMAND = False
 *
 * Commandline:
 *    --api='gles2=3.1' --extensions='' c --loader --mx
 *
 * Online:
 *    http://glad.sh/#api=gles2%3D3.1&extensions=&generator=c&options=LOADER%2CMX
 *
 */

Under these settings, on line 593 of src/gles2.c, it attempts to include the file glad/egl.h but this file is not included.

I am on Windows 11 using Microsoft (R) C/C++ Optimizing Compiler Version 19.44.35214 for x64.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions