voxelcore/res/preload.json
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

75 lines
1.4 KiB
JSON

{
"shaders": [
"ui",
"ui3d",
"main",
"lines",
"entity",
"translucent",
"background",
"skybox_gen",
"shadows",
"clouds"
],
"post-effects": [
"default",
{
"name": "ssao",
"advanced": true
},
{
"name": "deferred_lighting",
"advanced": true
}
],
"textures": [
"gui/menubg",
"gui/delete_icon",
"gui/no_icon",
"gui/no_world_icon",
"gui/warning",
"gui/error",
"gui/cross",
"gui/minimize_w",
"gui/maximize_w",
"gui/restore_w",
"gui/refresh",
"gui/folder_icon",
"gui/settings_icon",
"misc/rain",
"misc/snow",
"gui/check_mark",
"gui/left_arrow",
"gui/right_arrow",
"gui/lock",
"gui/save",
"gui/block",
"gui/item",
"gui/file",
"gui/module",
"gui/play",
"gui/info",
"gui/world",
"gui/hud",
"gui/entity",
"gui/half_block",
{
"name": "",
"path": "textures/misc/blank"
}
],
"fonts": [
{
"name": "normal",
"path": "fonts/font"
}
],
"atlases": [
"blocks",
"items",
"particles"
],
"models": [
"block"
]
}