Commit Graph

413 Commits

Author SHA1 Message Date
Alibek Omarov
7b665b3763 ref: gl: track max height of a dynamic lightmap 2026-04-06 10:04:15 +05:00
Alibek Omarov
58692f397a ref: gl: reorganize R_CheckLightMap to exit early for dlighted surfaces 2026-04-06 09:40:19 +05:00
Alibek Omarov
2253fcc955 ref: gl: skip redundant positions in LM_AllocBlock 2026-04-06 09:05:47 +05:00
Alibek Omarov
cbbae0c9bf ref: gl: simplify backface culling checks in frustum class 2026-04-06 08:25:45 +05:00
Alibek Omarov
e8ae48fd3d ref: simplify node recursion functions, do not fetch both children at once if only one is used 2026-04-06 08:16:20 +05:00
Alibek Omarov
3ace4a61d2 ref: gl: fix harmless NULL pointer dereference in alias model loading code 2026-04-05 07:03:46 +05:00
Alibek Omarov
5f765a35b9 ref: gl: show more detailed Host_Error instead of ASSERT in R_GetTexture 2026-04-04 17:36:05 +05:00
Alibek Omarov
216eedcdcd ref: gl: better wording about backface culling goldsrc bug [skip ci] 2026-04-03 01:28:04 +05:00
Alibek Omarov
fd55716633 ref: gl: change backface culling only if it wasn't disabled by mod developer beforehand 2026-04-03 01:23:55 +05:00
Alibek Omarov
00dac928c9 ref: replace checking PARM_QUAKE_COMPATIBLE with direct check of feature flag set 2026-04-02 02:13:27 +05:00
Alibek Omarov
d5b481ac9d ref: gl: fix off-by-one error in GL_PopPolygonOffset 2026-03-28 04:43:14 +05:00
Alibek Omarov
02b1d15e42 ref: gl: add gl_polyoffset_bmodels to enable poly offset for drawing brush models, avoiding zfighting 2026-03-27 03:27:20 +05:00
Alibek Omarov
641a3663f5 ref: gl: unlikely but use fast side check for frustum 2026-03-26 02:44:53 +05:00
Alibek Omarov
d8d1ebf23c engine: cleanup unused functions 2026-03-26 02:24:30 +05:00
Alibek Omarov
9a25768617 ref: soft: cleanup dead, commented out code and global variables 2026-03-17 00:19:27 +05:00
Alibek Omarov
e76528d929 ref: make sprite and studio global variables static 2026-03-17 00:19:27 +05:00
Alibek Omarov
00ad05c92a ref: gl: move showtextures implementation to gl_image.c 2026-03-17 00:19:27 +05:00
Alibek Omarov
658a3b0c6a ref: gl: minor refactoring 2026-03-11 10:11:21 +05:00
Alibek Omarov
4e9a2dace0 ref: gl: only check for GL errors if both gl_check_errors and developer mode are enabled 2026-03-11 08:39:58 +05:00
Alibek Omarov
f7b389b7cd common: remove particledef.h 2026-03-11 08:39:33 +05:00
Alibek Omarov
88e5013623 ref: gl: vgl_shim: try to fix build on PSVita 2026-02-26 17:22:47 +05:00
Alibek Omarov
50147a3d48 common: replace HLSDK pmtrace.h and pm_movevars.h by it's QW counterparts 2026-02-26 10:29:09 +05:00
Alibek Omarov
c63c0ba04b ref: minor refactoring 2026-02-23 21:46:01 +05:00
Alibek Omarov
8bdd6bfc5e ref: gl: add link to web archive where the ripple animation algorithm was originally described [ci skip] 2026-02-21 03:11:02 +05:00
Alibek Omarov
4722ad6be6 ref: replace COM_CheckString and COM_CheckStringEmpty by COM_StringEmptyOrNULL and COM_StringEmpty 2026-02-21 01:20:34 +05:00
Alibek Omarov
e0f01ddae7 engine: remove unused ignore_group argument from Cvar_FindVarExt 2026-02-20 21:55:15 +05:00
Владислав Сухов
e9ffe12481 ref: gl: fix opacity of additive sprites and textures in fog 2026-01-31 20:49:47 +05:00
Alibek Omarov
7a8837bf2a ref: do not remove permanent decals 2026-01-22 23:40:59 +05:00
Alibek Omarov
742265c2c4 ref: remove limit on total amount of textures a studio model can contain 2026-01-17 06:17:46 +05:00
lewa_j
5cdb58431a engine: ref: Remove unused declarations, fix comment after rename 2026-01-13 03:41:19 +03:00
ncuxonaT
e39f8bf7c4 ref: gl: always use RGTC internal format for ATI2 textures
AMD убрала в новых драйверах поддержку расширения GL_ATI_texture_compression_3dc, из-за чего сломалась загрузка ATI2 текстур. Формат RGTC включен в стандарт OpenGL 3.0, а единственные видеокарты с поддержкой 3DC, но без RGTC - это серия Radeon X1000 (2005г.). Можно было бы только ради Х1000 проверять поддерживаемые расширения и переключаться на 3DC, но без явной необходимости этого делать не хочется.
2026-01-03 08:17:09 +05:00
Nikita
58996c3d0d ref: gl: use wireframe overlay for bmodel faces as well 2025-12-21 02:32:12 +05:00
Alibek Omarov
66ea91270b engine: make Image_ComputeSize shared between renderer and imagelib 2025-12-14 00:00:59 +05:00
Alibek Omarov
44fb4fb594 engine: common: imagelib: remove dependency on OpenGL declarations in texture formats 2025-12-13 23:59:40 +05:00
Max Parry
2c20734ad3 ref: soft: Fix out of bounds memory access in VID_ScreenShot 2025-12-06 19:41:46 +11:00
ncuxonaT
bbe659ebfa ref: gl: fix loading texture arrays 2025-11-30 18:33:57 +05:00
ncuxonaT
2736d1fd03 dds volume texture fix - gl_image.c 2025-11-27 23:17:18 +08:00
Alibek Omarov
ceb5cd61e4 ref: gl: enable NPOT textures on GLES3 contexts as per spec 2025-11-27 19:18:27 +05:00
Alibek Omarov
c956c65e33 ref: gl: don't misleadingly tell about enabled vsync on engine startup before configs are parsed 2025-11-23 11:45:47 +05:00
Alibek Omarov
a14cc82d46 engine: add buffer size argument to RefAPI's Mod_ProcessRenderData, bump RefAPI version 2025-10-31 15:58:05 +05:00
Alibek Omarov
684f7fb75e ref: gl: implement rotation for 3D 2025-10-19 06:26:28 +05:00
Alibek Omarov
4dabb5d1f9 ref: gl: implement rotation for 2D 2025-10-19 06:25:43 +05:00
Alibek Omarov
7a02110a42 ref: gl: fix out of bounds access
On GPUs where GL_ARB_shading_language_100 isn't available (i.e. all mobile GPUs
I believe) this function would return total amount of texture units available.

But ref_gl only tracks and uses MAX_TEXTURE_UNITS texture units, causing memory
corruption in functions that doesn't check the limit.
2025-10-17 09:19:23 +05:00
Alibek Omarov
5d7cb90bea ref: gl: use our own matrix functions to create 2D projection and modelview matrices 2025-10-17 09:08:50 +05:00
Alibek Omarov
cb81303ded engine: replace hardcoded pvs radius value by a r_pvs_radius cvar 2025-09-28 18:31:03 +05:00
LekKit
c399611fc7 Merge branch 'master' into master 2025-09-09 09:45:06 +03:00
Alibek Omarov
c679037085 ref: gl: fix -Wformat error on 64-bit platforms 2025-09-07 01:56:54 +05:00
Alibek Omarov
d039a08b4e ref: gl: fix up data types. Engine TMU type is int, rather than GLint, and texture indices are technically unsigned int only (and they aren't GLenum) 2025-09-06 01:57:36 +05:00
Alibek Omarov
c0e8827cd5 ref: gl: refactoring, use bitset macros, use static for global objects 2025-09-06 01:57:36 +05:00
Alibek Omarov
11f976d9e9 ref: gl: simplify r_speeds, get rid of R_Speeds_Printf in favor using Q_snprintf directly 2025-09-06 01:31:53 +05:00