aboutsummaryrefslogtreecommitdiff
path: root/src/common/host_memory.cpp
diff options
context:
space:
mode:
authorBoiledElectricity <james.dellamorte@gmail.com>2026-06-15 04:30:40 +0200
committercrueter <crueter@eden-emu.dev>2026-06-15 04:30:40 +0200
commit5ebb5b8772452f6144358bb12c7bd0443e3711ae (patch)
treef3967adc8a340160c94ec6a66b9bbd68cec65406 /src/common/host_memory.cpp
parent73918d23d5a7c261e4b46342a410fd07b775cc6a (diff)
[opengl] query GL_MAX_CLIP_DISTANCES instead of hardcoding 8 (#4095)
The GL shader profile hardcoded max_user_clip_distances to 8. Query the device limit like the Vulkan path already does (it reads maxClipDistances), so we use what the host actually reports. Clamp to Maxwell's NumClipDistances (8) since the guest never produces more than that and the SPIR-V output array is sized for at most 8. So a host reporting fewer than 8 is respected, and one reporting more can't overrun anything. Fixes #3910 https://git.eden-emu.dev/eden-emu/eden/issues/3910 Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/4095 Reviewed-by: MaranBr <maranbr@eden-emu.dev> Reviewed-by: Lizzie <lizzie@eden-emu.dev>
Diffstat (limited to 'src/common/host_memory.cpp')
0 files changed, 0 insertions, 0 deletions