Vladislav Belov
456e2a0b56
Removes dummy GL functions as replaced by core
checkrefs / lfscheck (push) Waiting to run
checkrefs / checkrefs (push) Waiting to run
lint / cppcheck (push) Waiting to run
lint / copyright (push) Waiting to run
lint / jenkinsfiles (push) Waiting to run
pre-commit / build (push) Waiting to run
2026-04-25 17:47:06 +02:00
Ralph Sennhauser
5b5f678e3f
Fix some includes all over the place
...
Make include-what-you-use happy with some files in source and fix what
needs to be fixed.
Add markers to precompiled.h header includes to avoid
include-what-you-use wanting them to be removed.
Ref: #8086
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
2025-08-14 20:15:30 +02:00
Ralph Sennhauser
7dece41990
Fix includes in source/lib
...
Make include-what-you-use happy with some files in source/lib and fix
what needs to be fixed.
Ref: #8086
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
2025-08-03 10:15:37 +02:00
phosit
eb3f0166f8
Prefer [[maybe_unused]] over UNUSED2
...
`[[maybe_unused]]` is in the C++ standard.
2025-07-28 13:16:37 +02:00
Stan
0d60ecbf96
Remove OS_MAC macro
...
It hasn't been used in a while, and we shouldn't pretend to support macOS < 10.9.
2025-07-19 18:16:14 +02:00
phosit
891908b801
Remove UNUSED
...
The `UNUSED` macro is used to mark a variable as unused but with a name.
Those usages are replaced with comments so that `UNUSED` can be removed.
https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rf-unused
2025-06-26 17:25:05 +02:00
vladislavbelov
9845a99f77
Adds EGL support for Wayland.
...
Tested By: Freagarach, Mentula, phosit
Differential Revision: https://code.wildfiregames.com/D4642
This was SVN commit r26929.
2022-06-09 21:09:32 +00:00
vladislavbelov
36833d1df2
Moves max texture size to backend device capabilities.
...
This was SVN commit r26409.
2022-02-18 23:17:48 +00:00
vladislavbelov
b949f19875
Moves GL debug information toggle to run-time to make it easier to test after release.
...
This was SVN commit r26407.
2022-02-18 22:38:45 +00:00
Stan
3d2be697a2
Fix OpenGL ES build after ae32055c9b.
...
This was SVN commit r26163.
2022-01-04 00:21:37 +00:00
Stan
ae32055c9b
Add support for GL_KHR_debug in Debug Mode.
...
Based on a patch by: @linkmauve
Reviewed by: @vladislavbelov
Differential Revision: https://code.wildfiregames.com/D2488
This was SVN commit r26141.
2021-12-30 15:07:17 +00:00
vladislavbelov
3cb60353e1
Removes unused h_mgr includes.
...
This was SVN commit r26122.
2021-12-27 11:47:16 +00:00
vladislavbelov
478164962f
Removes static linking of OpenGL library.
...
Tested By: Langbart, Stan
Differential Revision: https://code.wildfiregames.com/D4387
This was SVN commit r26104.
2021-12-24 08:02:27 +00:00
Stan
c9bea80e0d
Use GLAD2 a multi-Language Vulkan/GL/GLES/EGL/GLX/WGL Loader-Generator.
...
Comments by: @nwtour, @Langbart, @bb
Based on patch by: @echotangoecho
Tested on Windows 7 & 10, Ubuntu and macos.
Differential Revision: https://code.wildfiregames.com/D721
This was SVN commit r26093.
2021-12-21 22:03:31 +00:00
vladislavbelov
89c181ded1
Encapsulates information about GL inside device.
...
Commented By: Stan
Differential Revision: https://code.wildfiregames.com/D4375
This was SVN commit r26072.
2021-12-15 06:43:41 +00:00
vladislavbelov
4bae03c6c8
Enables GL_TEXTURE_2D always since we don't support FPP anymore.
...
Tested By: Langbart
Differential Revision: https://code.wildfiregames.com/D4327
This was SVN commit r25982.
2021-10-30 14:34:20 +00:00
elexis
09e974e1cb
Bump year number of files changed this year in the license headers.
...
This was SVN commit r19503.
2017-05-01 14:28:22 +00:00
wraitii
6ee830068a
Print the name of OpenGL errors when they occur.
...
Patch by vladislavbelov
Differential Revision: https://code.wildfiregames.com/D313
This was SVN commit r19496.
2017-05-01 07:19:39 +00:00
elexis
6149dd3841
Actually remove trailing whitespace for non-header files as well.
...
This was SVN commit r18989.
2016-11-23 13:02:58 +00:00
Ykkrosh
e06a7b37d8
Convert debug_printf to take UTF-8 strings instead of wchar_t.
...
This fixes the problem where passing a non-ASCII string to
debug_printf(L"%hs", s) caused vswprintf_s to fail on Linux (because it
doesn't know what encoding the char* is meant to have). Now debug
messages will remain as UTF-8 until they reach the OS.
Fixes #3021 .
This was SVN commit r16332.
2015-02-14 01:45:13 +00:00
Ykkrosh
e1e163b3f7
Improve ogl_WarnIfError() to report the file/line where the error was detected
...
This was SVN commit r16164.
2015-01-19 20:06:16 +00:00
historic_bruno
e75877b52f
Adds comment about xorg-x11's glXGetProcAddress not returning NULL for unsupported functions, closes #171
...
This was SVN commit r13480.
2013-06-14 23:49:20 +00:00
Ykkrosh
f4625e69af
Partial Android compatibility.
...
Remove unnecessary VM allocation (which seemingly causes problems on
Android due to mmap during static initialization).
Allow building without NVTT.
This was SVN commit r11074.
2012-02-15 13:58:58 +00:00
Ykkrosh
e64a3d3946
Experiment a little with OpenGL ES
...
This was SVN commit r10915.
2012-01-15 23:15:31 +00:00
historic_bruno
893cb2668e
Renames our sdl.h to libsdl.h, to avoid case sensitivity errors when it includes SDL.h.
...
This was SVN commit r10904.
2012-01-12 23:32:27 +00:00
Ykkrosh
0ec4242962
Detect and fix printf signedness errors. Fixes #1086 , #1087 .
...
This was SVN commit r10846.
2012-01-01 16:43:10 +00:00
Ykkrosh
6ac6d4f1ec
Fix #1062 (incorrect check for empty string), based on patch by Echelon9
...
This was SVN commit r10821.
2011-12-29 01:07:20 +00:00
janwas
7600c3862b
refactor gfx detection code (interface), allow exporting from DLL (required at work)
...
This was SVN commit r9546.
2011-05-24 14:17:47 +00:00
janwas
7523894760
ENSURE(0) -> DEBUG_WARN_ERR(ERR::LOGIC) (a bit smaller, and more descriptive)
...
This was SVN commit r9423.
2011-05-04 12:10:17 +00:00
janwas
cccd6849a7
cleanup (requires update-workspaces)
...
lib_errors.cpp: replace with status.cpp, adapt to needs at work
wutil: fix runtime warning reported via feedback box
config: merge CONFIG_PARANOIA and !CONFIG_FINAL into
CONFIG_ENABLE_CHECKS
add openmp, pointer_typedefs.h
This was SVN commit r9410.
2011-05-03 12:38:42 +00:00
janwas
0720025073
cleanup
...
reduce dependency on PCH. move KiB constants to alignment, ARRAY_SIZE to
code_annotation.h.
move glext_funcs.h to external_libraries/glext_funcs.h, move part of
ogl.h to external_libraries/opengl.h
remove unused saturating arithmetic functions
This was SVN commit r9363.
2011-04-30 13:22:46 +00:00
janwas
4663ac0fe7
split debug_assert into ENSURE and ASSERT as discussed in a previous meeting.
...
the old debug_assert always ran and tested the expression, which slows
down release builds. wrapping them in #ifndef NDEBUG is clumsy. the new
ASSERT behaves like assert and ENSURE like the old debug_assert. Let's
change any time-critical but not-super-important ENSURE to ASSERT to
speed up release builds. (already done in bits.h and unique_range.h)
This was SVN commit r9362.
2011-04-30 13:01:45 +00:00
Ykkrosh
ecbd0ae31b
Fix Windows build.
...
Improve compatibility with GL1.3.
This was SVN commit r9077.
2011-03-18 18:07:18 +00:00
Ykkrosh
e70fae8d80
Stop using glMultiDrawElements since it's too buggy
...
This was SVN commit r9064.
2011-03-14 21:57:09 +00:00
Ykkrosh
fc2c54c39f
# Optimise terrain renderer.
...
Batch patch splats by texture match.
Use VBOs for patch indices.
Fixes #722 .
This was SVN commit r9053.
2011-03-13 19:06:33 +00:00
Ykkrosh
eb163c8d24
Improve reporting of extensions promoted into GL 1.2
...
This was SVN commit r8996.
2011-02-27 14:25:04 +00:00
Ykkrosh
0c1e05d672
Fix typo
...
This was SVN commit r8972.
2011-02-22 20:15:59 +00:00
Ykkrosh
e91434a23d
Extend isImplementedInCore up to GL 3.0
...
This was SVN commit r8950.
2011-02-20 00:52:50 +00:00
Ykkrosh
3e1f09a58f
Fix missing newline in GL error reporting
...
This was SVN commit r8936.
2011-02-19 00:38:08 +00:00
janwas
6935a03743
remove no-longer needed GLU dependency; avoids delay-load warning.
...
This was SVN commit r8555.
2010-11-08 10:42:34 +00:00
Ykkrosh
3124b55cc0
Warning fixes
...
This was SVN commit r7821.
2010-07-29 21:04:07 +00:00
Ykkrosh
3bccfc295f
Fix the GL extension fallback functions so they actually get used
...
This was SVN commit r7803.
2010-07-25 11:03:45 +00:00
Ykkrosh
0833d6a950
Improve OpenGL 1.1 support
...
This was SVN commit r7747.
2010-07-13 20:37:44 +00:00
janwas
f066daf21d
update zlib, libpng; rebuild libjpg (avoids dependency on msvcr71)
...
update-workspaces required.
This was SVN commit r7630.
2010-06-21 11:54:15 +00:00
janwas
1861448e6c
needed to split lib into separate headers and source files, which requires lots of drudgery to specify paths for each include filename (no longer relying on same-directory lookups)
...
also rename wchar -> utf8 to avoid conflict with <wchar.h> (requires
rebuild of workspace)
(unfortunately copying history fails to "502 bad gateway"; had to delete
old + add new independently)
This was SVN commit r7340.
2010-03-01 14:52:58 +00:00
janwas
c2fd939898
license change to the more permissible Expat/MIT license for lib/ (see forum thread)
...
This was SVN commit r7316.
2010-02-08 16:23:39 +00:00
janwas
03726c0b54
ICC build fixes
...
warning fixes
get rid of SAFE_WCSCPY and SAFE_STRCPY
This was SVN commit r7239.
2010-01-01 15:33:07 +00:00
janwas
f432d9d18b
fix dehydra warnings (some of which were dangerous pass-user-string-as-format-string vulnerabilities)
...
This was SVN commit r7177.
2009-11-07 09:32:19 +00:00
janwas
8a52113e60
huge cleanup and conversion of most string handling (especially paths) to unicode
...
please note: format strings must be %hs for char* arguments and %ls for
wchar_t*
This was SVN commit r7161.
2009-11-03 21:46:35 +00:00
Ykkrosh
cd6a926c14
Fix #293 (Lots of printf format string errors), based on patch from Cygal
...
This was SVN commit r7113.
2009-08-14 18:42:39 +00:00