Владислав Сухов
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
Alibek Omarov
7c83aafbf5
ref: gl: fix incorrect usage of GL_Bind in R_ShowTextures (it accepts engine's texture id, not opengl texture name)
2025-09-06 01:26:43 +05:00
Alibek Omarov
699e178f62
ref: gl: remove excessive ASSERT macro, use Assert everywhere
2025-09-06 00:41:48 +05:00
Alibek Omarov
83fe4d6c59
ref: gl: mark gl_frustum_t pointer as const in frustum culling functions
2025-08-30 19:32:50 +05:00
Alibek Omarov
74b196d2c3
ref: gl: do not apply multisampling when drawing 2D
2025-08-17 23:43:53 +05:00
lewa_j
ae2808dff7
ref: gles3compat: Fix crashes on stubs under windows, probably due to signature missmatch
2025-07-27 16:27:55 +05:00
lewa_j
af69df15e1
ref: Fix gl4es build under windows. Static gl functions declared with APIENTRY even without mangling.
2025-07-27 16:27:55 +05:00
yohimik
2234f91c38
ref: gl: add stubs for WebGL
2025-06-15 13:01:13 +05:00
Alibek Omarov
53e59c2e73
ref: load sprites textures with texgamma applied (like GoldSrc)
2025-05-26 19:09:28 +05:00
Alibek Omarov
706cc16a86
ref: fix -Wmaybe-uninitialized
2025-03-25 17:06:59 +03:00
Alibek Omarov
90bd72d481
ref: gl: disable blend after we're done drawing sprite "lightmap"
...
Fixes translucent brush model on renderfx2.bsp (https://twhl.info/vault/view/6933 )
which so happened to draw after agrunt sprite, that has "lightmap" enabled
2025-03-25 00:52:11 +03:00
Alibek Omarov
66bdca63ee
ref: gl: upload skybox texture object with >= 5800 name only with GL compatibility context, it's not needed on GLES
2025-03-17 08:32:06 +03:00
Alibek Omarov
6aeedf201c
ref: gl: update dlight texture in case if BLOCK_SIZE changes between maps (going from QBSP to BSP2 or toggling r_large_lightmaps cvar)
2025-03-15 19:23:49 +03:00
Alibek Omarov
c9f8bdfcb0
ref: gl: allow updating texture with NULL data by calling TexImage instead of TexSubImage
2025-03-15 19:20:36 +03:00
Alibek Omarov
1cef8ea7af
Revert "ref: gl: check OES NPOT texture extension in BigGL mode"
...
This breaks mipmaps on PSVita
This reverts commit 54b0cf9991 .
2025-02-28 17:08:27 +03:00
Alibek Omarov
a3aaa87147
ref: gl: enable polygon offset for fullbright textures when rendering them in separate from VBO pass
2025-02-25 11:49:31 +03:00
Alibek Omarov
3e4c5beb25
ref: fix another typo made after R_StudioCalcBones refactor
2025-02-18 19:22:06 +03:00
Alibek Omarov
39659644bf
public: merge calc bone quaternion and position into single function
...
Expect that only adj and output quaternion can be NULL.
2025-02-11 18:57:08 +03:00
Alibek Omarov
eb09af0b08
ref: gl: avoid generating GL_INVALID_OPERATION if gl_vbo_dlightmode is set to 0
2025-02-11 18:57:08 +03:00
Alibek Omarov
241fab02b1
ref: gl: don't try to free luma and detail texture of water texture, as these fields used by r_ripple
2025-02-08 16:57:20 +03:00
Alibek Omarov
b5cb0b9f10
ref: gl: add r_dlight_virtual_radius. It potentially fixes ugly dlight cut off on largely scaled textures (or at least allows to tune it)
...
It also adds a fix found in JoeQuake (which traces back to FitzQuake, in which
it is attributed to LadyHavoc, Darkplaces author) to exactly calculate whether
the light hits the surface, so we don't wrongly enable lighting on a surface by
an increased radius.
2025-02-07 23:07:08 +03:00
Alibek Omarov
a955d1e957
ref: gl: make GL_BuildPolygonFromSurface static, remove one global variable usage (which is unused anyway)
2025-02-07 22:55:38 +03:00
Alibek Omarov
6a0038e26a
ref: gl: always set texture env mode to GL_MODULATE in TriAPI's RenderMode call
...
Not sure if this is correct, but it's generally a good idea to restore it to an
expected value.
2025-02-06 00:30:32 +03:00
Alibek Omarov
54b0cf9991
ref: gl: check OES NPOT texture extension in BigGL mode
2025-02-05 14:00:44 +03:00
Alibek Omarov
3ebcb08a97
ref: gl: add cvar r_large_lightmaps to enable larger lightmap sizes, opt-in, yields better performance with VBO renderer
2025-02-05 13:02:37 +03:00
Alibek Omarov
6c91fdb0cd
ref: gl: gl2_shim: fix int vs GLuint
2025-02-02 20:57:37 +03:00
Alibek Omarov
77abf621d7
ref: gl: make GL_Support and GL_MaxTextureUnits functions inlined
2025-01-30 19:02:53 +03:00