Commit graph

30 commits

Author SHA1 Message Date
alexei-zebra
b5416d1219
Fix the issues found while reviewing the Wayland frame work
A review of the branch turned up a number of defects, gaps and leftovers;
this commit addresses all of them.

Defects:
- the shadow uniform array held seven entries while eight locations were
  written, so the last one landed outside the object;
- CursorShape::LAST stayed in the middle of the enum after the new corner
  shapes were appended, which made the GLFW cursor table read out of
  bounds; the extra shapes are now mapped onto the ones GLFW knows, and
  the table is only filled for those;
- GlStateGuard asked glIsEnabled for an attribute pname, so it always got
  GL_INVALID_ENUM and never restored the vertex attribute arrays;
- the early returns in wayland_window_initialize left the global window
  and input pointers dangling when falling back to GLFW;
- the icon textures were listed nowhere, so none of them ever loaded;
- a shader failure disabled the shadow after the surface had already been
  sized for it, and VOXEL_DECORATIONS outlived the switch cleanup.

Behavior:
- the keyboard now releases every pressed key when it loses focus, and a
  repeat rate of zero means no repeat;
- the fourth UTF-8 lead byte is decoded with the right mask, control
  characters no longer reach text fields, and a vanished clipboard offer
  clears the cached text;
- compositor side decorations disable ours again instead of leaving two
  titles, the window destructor releases the rest of the state, and the
  content inset is computed before the GUI acts so the HUD and the
  container never disagree for a frame; the HUD clamps it;
- the window controls fall back to minimize, maximize and close, and the
  icons are drawn from textures only.

Cleanups: one monotonic timer instead of three, one vertex shader shared
by both renderers with a link check, one button layout parser, the inset
rule moved into Screen, the scissor stack moved into the base Window
(about 110 duplicated lines), named shadow and evdev constants, trimmed
includes, a README note about the Wayland dependencies, and the long
lines introduced by this branch wrapped.
2026-10-10 12:23:42 +03:00
MihailRis
43e0b1d671 update preload.json 2026-04-11 12:16:16 +03:00
MihailRis
8153ddde89 add clouds shader 2026-02-12 18:19:25 +03:00
MihailRis
ddd4f4f24f add common blank texture file 2025-12-28 18:27:24 +03:00
Xertis
1f0b6f0d9d Qol settings.controls update 2025-08-04 20:50:27 +03:00
MihailRis
7cf073f079 fix: skybox is not visible behind translucent blocks 2025-07-25 22:28:28 +03:00
MihailRis
e849d5e9b7 feat: deferred lighting (WIP) 2025-06-14 22:43:18 +03:00
MihailRis
02a91e0b72 add 'advanced' post-effect load configuration 2025-06-13 23:28:16 +03:00
MihailRis
fc46b7c434 initial commit 2025-05-07 20:42:50 +03:00
MihailRis
ba170035ef feat: post-processing effects 2025-04-05 00:41:25 +03:00
MihailRis
4761c520d5 feat: component script reloading 2025-03-16 22:03:37 +03:00
MihailRis
6fb14ee0a4 feat: reloading hud scripts 2025-03-15 21:12:19 +03:00
MihailRis
f9998f0a93 feat: world script reloading 2025-03-14 17:07:10 +03:00
MihailRis
bcbfdd50c7 feat: running files with and block/item script reload 2025-03-13 22:08:22 +03:00
MihailRis
b66937c61d feat: scripts classification 2025-03-13 00:28:40 +03:00
MihailRis
fb18442322 update console layout 2025-03-12 18:00:28 +03:00
MihailRis
3d60777a12 feat: save edited files 2025-03-12 17:08:50 +03:00
MihailRis
e70746ae43 update console layout 2025-03-11 03:48:27 +03:00
MihailRis
bf5a5b243f Merge branch 'main' into precipitation 2025-03-09 23:13:04 +03:00
MihailRis
b4456fdb51 add PrecipitationRenderer (WIP) 2025-02-26 02:24:16 +03:00
Xertis
274d6b4552
Merge branch 'MihailRis:main' into main 2025-01-09 14:37:15 +03:00
MihailRis
d65da966d2 add app.load_content 2025-01-06 16:54:03 +03:00
Xertis
a5aaddb379 add suggestive signs 2025-01-03 18:07:01 +03:00
Xertis
a1a4fc97fc add icons 2025-01-02 23:31:15 +03:00
Xertis
2018b2f8a4 add content_config 2024-11-28 22:26:48 +03:00
MihailRis
f1dc983766 add standard 'particles' atlas 2024-11-03 19:51:59 +03:00
MihailRis
788ad1f6a6 add core:obstacle block & move cameras from base to core & add new generator 2024-09-25 15:45:45 +03:00
MihailRis
f9df873382 update assets errors handling & add 'atlases' to preload 2024-07-23 19:27:46 +03:00
MihailRis
4b6c61ad89 page 404 2024-03-19 14:33:08 +03:00
MihailRis
7449434f5c assets preloading with preload.json 2024-03-11 15:09:21 +03:00