2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-11-25 03:11:06 +01:00
Commit Graph

3054 Commits

Author SHA1 Message Date
mittorn
ca985f32d9 waifulib/xcompile: add android-from-none for new host-clang versions, support hardfloat abi in host-clang 2023-11-01 21:30:18 +03:00
mittorn
d68ae53b3f gl2shim: add SOFTFP_LINK support for gles3compat 2023-11-01 21:24:47 +03:00
mittorn
811fb6aaad gl2shim: fix gcc 4.9 build 2023-11-01 21:23:46 +03:00
mittorn
5f93b2dfe4 wscript: check if extra-projects was set in configuration 2023-10-31 21:09:36 +03:00
246326ee12 waifu: set external waifulibs for extra-projects 2023-10-31 05:07:40 +03:00
5e60c3c956 ref_soft: fix crash when y < -height 2023-10-31 04:05:13 +03:00
253eb25a3f platform/android: prevent rendering without context, fix android_sleep using surfaceless mode or dummy surface if possible 2023-10-30 03:10:44 +03:00
11a38a405b waf/xcompile: fix ld path for host clang 2023-10-28 23:30:15 +03:00
df44a72781 waf/compiler_optimizations: remove no-semantic-interposition for gcc4 2023-10-28 23:28:56 +03:00
eb2aabb7e7 platform/posix: check for non-zero dladdr ret 2023-10-28 23:27:11 +03:00
237b38a207 platform/android: implement dumb dladdr fallback (only searches in server library) 2023-10-28 23:26:11 +03:00
b67ee66f19 imagelib: fix for loop scope 2023-10-28 10:14:27 +03:00
7ddd2d79e8 ref_soft,ref_gl: fix unaligned read in sprite code 2023-10-28 10:13:25 +03:00
mittorn
588ee42790 platform/eglutil: prevent rendering while no surface 2023-10-27 00:25:12 +03:00
mittorn
d6b2b0d72b platform/android: debug surface enabling/disabling, add notification for event_set_pause, fix wrong host.status, prevent rendering while no surface 2023-10-27 00:24:23 +03:00
mittorn
ef93c04db6 platform/android: disable swbuffer resize hack, wrong buffer size really is an error that should be fixed on Activity side, not here 2023-10-26 20:56:36 +03:00
7013caa07d platform/android: rewrite egl part to separate not android-specific file 2023-10-26 04:52:41 +03:00
f1a8efdf17 ref_gl: Fix missing DebugOutput functions on GLES 2023-10-26 04:50:32 +03:00
mittorn
38548d31ff gl2shim: workaround empty rgb5/rgb8 textures 2023-10-25 22:22:54 +03:00
mittorn
5e6ad291eb ref_gl: force gles2 on non-nanogl until we support gles1 directly 2023-10-25 22:21:18 +03:00
mittorn
6659005632 waifulib/xcompile: fix host clang16 2023-10-25 22:20:32 +03:00
63db6f8cdb wscript: add external projects support (updated waf required) 2023-10-24 07:44:05 +03:00
5e2f297311 platform/android_nosdl: fix build (ndk10, host clang15) 2023-10-24 05:06:33 +03:00
bc2c42ba92 waifulib/xcompile: host clang experiments (ndk ld) 2023-10-24 04:59:19 +03:00
6f03d31a30 Revert "engine: partially remove legacy Android port, in preparation of new port merge"
This reverts commit ef663a8790.
2023-10-24 02:51:50 +03:00
8f819a2fde
engine: platform: sdl: fix forgotten icon setup call 2023-10-23 00:31:30 +03:00
3251b68df5 ref: gl: more simple search of GL func with alternative name (EXT, OES suffixes or no suffix) 2023-10-22 20:02:14 +03:00
3ac8ad9484 engine: fixup endianness found by -Werror=strict-aliasing in old armv7hf compiler (d259421111) 2023-10-22 20:02:14 +03:00
b9ca0d4563 engine: common: network: more simple IP address copying from sockaddr to netadr_t and back 2023-10-22 20:02:14 +03:00
dcb3da53b0 engine/client: fallback to defaults in touch_reloadconfig if config not exist 2023-10-22 20:02:14 +03:00
e68b19ed1a engine/client: handle touch config aspect ratio, try correctly handle touch aspect on resizeable windows 2023-10-22 20:02:14 +03:00
14c7a84482 engine/client: always save touch config if it was resetted manually (helps after writing broken/empty config) 2023-10-22 20:02:14 +03:00
mittorn
c1d1aa6787 ref_gl: rewrite ARB workaround to check EXT/OES names, notify user that function found with different name 2023-10-22 20:02:14 +03:00
mittorn
bee81e9723 engine: Make SDL_GetBasePath error not fatal 2023-10-22 20:02:14 +03:00
mittorn
1bfb6c560a platform/sdl: add check for missing hint defines 2023-10-22 20:02:14 +03:00
mittorn
24d6f1788a platform/sdl: workaround ubuntu SDL2 bug preventing resolving any extensions on EGL 2023-10-22 20:02:14 +03:00
mittorn
fb95cc9a97 engine/client: respect m_ignore in mouse client code as grabbing window breaks touch input 2023-10-22 20:02:14 +03:00
mittorn
b949da291e engine: fix strict aliasing issues found by an old armv7hf compiler 2023-10-22 20:02:14 +03:00
2ecbe5b67e engine: add testing master server at mentality.rip:27011 2023-10-22 19:39:58 +03:00
Andrey Akhmichin
6634e0487c Documentation: opensource-mods.md: update. 2023-10-22 19:21:13 +03:00
7d61b5317c engine: client: add random key to the query, so we can validate master server response 2023-10-22 18:16:42 +03:00
201258dc9e engine: client: allow passing additional filter through internetservers command arguments 2023-10-22 17:58:28 +03:00
0330569537 engine: client: remove master server queries from NetAPI, they are never used by mods 2023-10-22 17:49:52 +03:00
a1ab84a2ca mainui: update 2023-10-22 17:38:44 +03:00
2d79f3ef7a engine: common: sys_con: enable writing build commit, os and arch to the engine.log 2023-10-22 17:37:09 +03:00
99a7e9ad87 wscript: enable -Werror=nonnull 2023-10-22 17:37:09 +03:00
02b8037f33 common: xash3d_types: add NONNULL attribute 2023-10-22 17:37:09 +03:00
Andrey Akhmichin
fc55a685e3 utils: mdldec: small optimizations. 2023-10-22 16:00:01 +03:00
b76a75d6b4 ref: gl: respect gl_texture_nearest value for skyboxes 2023-10-20 18:55:22 +03:00
Ivan Avdeev
a251600c8a
engine: common: imagelib: add KTX2 support (#1455)
* engine: common: imagelib: add KTX2 support

Adds basic KTX2 support for a few compressed formats. KTX2 essentially
is a Vulkan-centric texture format that supports literally hundreds of
pixel formats.
For now only support for these is added:
- `VK_FORMAT_BC4_UNORM_BLOCK`
- `VK_FORMAT_BC4_SNORM_BLOCK`
- `VK_FORMAT_BC5_UNORM_BLOCK`
- `VK_FORMAT_BC5_SNORM_BLOCK`
- `VK_FORMAT_BC6H_UFLOAT_BLOCK`
- `VK_FORMAT_BC6H_SFLOAT_BLOCK`
- `VK_FORMAT_BC7_UNORM_BLOCK`
- `VK_FORMAT_BC7_SRGB_BLOCK`

Adding more formats is relatively straightforward:
- Copy format definition from `VkFormat` enum in `vulkan_core.h`
- Add a new definition into `pixformat_t` enum.
- Add format size calculation into `Image_ComputeSize()`

While we're at it, also adds a few new formats to DDS:
- BC4_UNORM -- PF_BC4_UNSIGNED
- BC4_SNORM -- PF_BC4_SIGNED
- BC5_UNORM -- PF_BC5_UNSIGNED
- BC5_SNORM -- PF_BC5_SIGNED
- BC7 is expanded into BC7_UNORM and BC7_SRGB

ref_gl and ref_soft code is updated where it made sense. But not tested
really. Support for these formats has been tested with ref_vk.

* address spaces-vs-parentheses formatting where noticed

* parenthesize sizeofs

* move ktx2.h to imagelib as img_ktx2.h; massage it a bit

* use SetBits() instead of |=

* remove stale TODO comments
2023-10-18 10:31:40 +03:00