dawn-cmake/generator
Stephen White 55183e6c3a OpenGL: only load extension procs if extension supported.
Only load extension entry points if the extension is supported.

From the eglGetProcAddress manpage:

"A non-NULL return value does not guarantee that an extension function
is actually supported at runtime. The client must also make a
corresponding query, such as glGetString(GL_EXTENSIONS) for OpenGL and
OpenGL ES extensions [...] to determine if a function is supported by
EGL or a specific client API context."

This required moving extension initialization from OpenGLFunctions
into OpenGLFunctionsBase.

Change-Id: Ib4e8360ba455818701990b4476689b651d097ca8
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/121760
Commit-Queue: Stephen White <senorblanco@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Austin Eng <enga@chromium.org>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
2023-02-27 19:31:08 +00:00
..
templates OpenGL: only load extension procs if extension supported. 2023-02-27 19:31:08 +00:00
CMakeLists.txt CMake: tweak third-party imports. 2022-05-16 09:11:21 +00:00
dawn_generator.gni Add Dawn Wire Server LPM Fuzzer [1/N] 2023-02-08 20:43:18 +00:00
dawn_gpu_info_generator.py Make adapter info device matching more flexible 2022-08-02 22:14:35 +00:00
dawn_json_generator.py Add Dawn Wire Server LPM Fuzzer [1/N] 2023-02-08 20:43:18 +00:00
dawn_version_generator.py Fix incorrect indentation in version generator script. 2022-06-23 01:14:24 +00:00
extract_json.py Avoid unnecessary recompiles with code generators. 2021-03-23 19:06:02 +00:00
generator_lib.gni BUILD.gn: Make toolchain.ninja not contain system absolute paths. 2022-11-22 11:07:27 +00:00
generator_lib.py generator_lib.py: Fix exception when racing for dir creation. 2022-12-19 11:14:54 +00:00
opengl_loader_generator.py tint->dawn: Move src/dawn_native -> src/dawn/native 2022-02-04 17:07:46 +00:00