Commit Graph

647 Commits

Author SHA1 Message Date
Anuraag Agrawal c050e33aa0 Define APIENTRY in osmesa build if not defined. 2024-04-25 08:31:48 +10:00
Nigel Stewart c1985bb954 blacklist MESA_sampler_objects for now, collides with GL_ARB_sampler_objects 2023-11-10 08:32:46 +10:00
Kerby Geffrard c43940a927 Shallow clone of registry repositories 2023-10-07 06:44:25 +10:00
Ned Loynd 52ce1cc575 Check the macOS deployment target before using dlfcn 2023-03-15 22:28:10 +10:00
Nigel Stewart 5a2307fae3 Fix issue #355 - GL_NVX_progress_fence missing glCreateProgressFenceNVX 2022-06-13 12:22:45 +10:00
ibbem 37e6144802 Remove broken end of string checks in _glewStrSame
I think this code tried to check for a zero terminated null byte, but it
actually just checked if the address of the corresponding character is
non-zero, which is always true. These broken checks are simply dropped
because the following code assumes that the string `b` doesn't include a
null byte and all call sites already pass the length of the string
without counting the null byte.

This bug was found by gcc 12.1 which emits a warning on this kind of
code. Now glew builds without any warnings using gcc 12.1. See
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102103 for the
corresponding issue.
2022-06-13 12:21:23 +10:00
Bertie Wheen c6673b15bf Remove unnecessary code
Resolves #349 (I think)
2022-04-02 12:30:19 +10:00
G'lek Tarssza 35d928bc77 Fixed failing build on Windows when using LLVM.
Failure caused by `llvm-rc` failing on non-ASCII code point for
copyright symbol.
2022-02-20 18:52:10 +10:00
luz paz 4a757ac7c0 Fix various typos
Found via `codespell -q 3 -L ake,extrem,lod,parms`
2021-12-20 07:31:49 +10:00
Nigel Stewart 715afa0ff5 Extend GLEW API to support glewContextInit - GL without implied GLX, WGL, EGL initialisation 2021-08-29 09:11:11 +10:00
Nigel Stewart ea2076658a glewGetErrorString for GLEW_ERROR_NO_GLX_DISPLAY (added in 2016) 2021-08-29 09:10:04 +10:00
Xavier Bonaventura fb0f210598 Use os.path.join to create paths
Paths should be created using os.path.join with this way is platform
independent.
2021-01-10 21:40:05 +10:00
Nigel Stewart 749aec8b9b Documentation refresh for GLEW 2.2.0, downloads from github 2021-01-10 12:23:57 +10:00
Nigel Stewart 8c88a0858f EGLEW: Wayland wl_buffer declaration for WL_bind_wayland_display 2021-01-10 11:52:31 +10:00
Nigel Stewart d68cb03149 EGLEW: Wayland wl_display and wl_resource declarations for WL_bind_wayland_display 2021-01-10 11:50:29 +10:00
Xavier Bonaventura 107ab7f6e9 Use list comprehension instead of extending the collection 2021-01-10 11:09:37 +10:00
Xavier Bonaventura 4e5fe20519 Use context manager instead of raw open
Raw open should be avoided to prevent that in case of an exception
the file is not closed.
This also has the advantage that if the user forgets to call close
the file is still closed.
2021-01-10 11:08:48 +10:00
Christian Rauch 3cdab58d4e fix typo 2020-12-13 23:24:55 +10:00
Nicolas Caramelli 75e3154422 The file include/GL/gl.h generated from OpenGL-Registry uses __gl_gl_h_ 2020-12-04 16:45:04 +10:00
Tim Gates bfc724c6cc docs: fix simple typo, direcly -> directly
There is a small typo in auto/src/glew_head.c.

Should read `directly` rather than `direcly`.
2020-11-28 10:28:05 +10:00
Nigel Stewart 9fb23c3e61 Documentation updates for GLEW 2.2.0 release 2020-03-15 21:59:54 +10:00
Nigel Stewart 555aa3ffc0 Exclude GLU and GL_SGIX_color_type extensions 2020-03-15 21:52:24 +10:00
Nigel Stewart 18676f16d9 GL_EXT_semaphore constants fix (Issue #249) 2019-12-23 08:56:49 +10:00
Nigel Stewart 262514e123 glStencilFuncSeparate parameter name correction based on gl.xml (Issue #243) 2019-11-03 22:29:57 +10:00
Nigel Stewart 5509e2e13e Resolve gcc -Wshadow / MS C4456 compilation warning(s) 2019-09-27 22:08:15 +10:00
Nigel Stewart 47588720ee Extend GLEW_INCLUDE support to eglew.h and glxew.h 2019-06-13 09:28:51 +10:00
Nigel Stewart 3565eacf87 Include cstddef and cstdint (rather than C versions) for C++ compiler on macOS and Linux 2019-03-19 20:08:48 +10:00
TheVice 1f833c032f [parse_xml] resolved "TypeError: a bytes-like object is required, not 'str'"
after commit 10f2d76c62 was applied.
2019-03-17 22:48:22 +10:00
TheVice 1b17b0b210 [parse_xml] replaced OptionParser with ArgumentParser according
to depreciation of first one starting from Python version 3.2.
2019-03-17 22:48:22 +10:00
Valentin Sarthou 10f2d76c62 Write files in binary format in parse_xml.py
Issue:
On Windows platforms, when writing files with python in text-mode, LF
characters get converted to CRLF.
This behavior leads to incorrect code generation in the steps following
parse_xml.py

Fix:
Replace file access mode by 'wb' to avoid any platform-dependent behavior
regarding newlines.
2019-03-17 09:03:24 +10:00
Nigel Stewart 565caae5ad Prune auto/core for GLX code generation from XML 2019-02-05 06:37:36 +10:00
Nigel Stewart 521fa58c63 Use parse_xml.py for GLX code generation 2019-02-05 06:37:36 +10:00
Nigel Stewart 3e6dfc4414 Prune auto/core for WGL code generation from XML 2019-02-04 07:58:55 +10:00
Nigel Stewart dcff76b0d1 Type-mapping isn't needed for parse_xml.py WGL purposes, after all 2019-02-04 07:58:55 +10:00
Nigel Stewart 62b9213b44 Use parse_xml.py for WGL code generation 2019-02-04 07:58:55 +10:00
Nigel Stewart 278a314d99 Improved robustness for EGL-Registry download 2019-02-03 18:45:46 +10:00
Nigel Stewart 6f31e134f6 Extend glewinfo to support optional -experimental mode, default to normal mode of operation 2019-02-02 15:03:57 +10:00
TheVice e304e73230 [filter_gl_ext] removed command that currently not applicable. 2019-02-02 15:03:27 +10:00
Nigel Stewart 103b3d156e Update copyright information for 2019 2019-02-02 14:19:42 +10:00
Nigel Stewart fbcb13d274 FreeBSD xargs fixup for auto/Makefile 2019-02-02 09:23:01 +10:00
Nigel Stewart a8df738667 FreeBSD using #!/usr/bin/env for portability 2019-02-02 09:23:01 +10:00
Nigel Stewart c49798062d Optional override of OpenGL-Registry, EGL-Registry amd glfixes git repos 2019-01-28 21:05:21 +10:00
TheVice b48ded757e [glewinfo] added using of 'sscanf_s' function for some build environment. 2019-01-28 21:04:41 +10:00
Deve 7f65a36866 Fixed compilation with current mesa versions.
As you can see in
https://cgit.freedesktop.org/mesa/mesa/tree/include/GL/glext.h
now the file uses __gl_glext_h_ instead of __glext_h_
It's precisely caused by commit f7d42ee7d319256608ad60778f6787c140badada
2018-12-29 20:22:04 +10:00
Nigel Stewart 3e033b9db5 Fix Issue #189 - GL_NV_sample_locations glResolveDepthValuesNV 2018-10-10 16:49:12 +10:00
Nigel Stewart 6d5dabf870 Fix Issue #194 - KHR_context_flush_control enums 2018-10-10 16:38:56 +10:00
Nigel Stewart 14e212406c Fix Issue #195 - need to sort extensions by name, rather than path 2018-10-10 16:12:24 +10:00
Nigel Stewart 03afadd4f2 Using EGL-Registry for EGL support 2018-10-10 13:59:11 +10:00
Nigel Stewart d73ad7eeb2 Blacklist more GLX SGIX extensions = fixup 2018-10-10 11:19:01 +10:00
Nigel Stewart 08ca29e604 Blacklist more GLX SGIX extensions 2018-10-10 11:08:45 +10:00