From 7fbe5cbfbb9dc29607957b8e62f432a4deed193d Mon Sep 17 00:00:00 2001 From: Joshua Yanovski Date: Wed, 8 Jul 2020 02:23:02 +0200 Subject: [PATCH] Address lies about max texture size. --- voxygen/src/render/renderer.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/voxygen/src/render/renderer.rs b/voxygen/src/render/renderer.rs index 9971025d5c..d1ad0192c5 100644 --- a/voxygen/src/render/renderer.rs +++ b/voxygen/src/render/renderer.rs @@ -854,7 +854,8 @@ impl Renderer { /// NOTE: Because Macs lie about their max supported texture size. const MAX_TEXTURE_SIZE_MAX: u16 = 8192; #[cfg(not(target_os = "macos"))] - const MAX_TEXTURE_SIZE_MAX: u16 = u16::MAX; + /// NOTE: Apparently Macs aren't the only machines that lie. + const MAX_TEXTURE_SIZE_MAX: u16 = 16384; // NOTE: Many APIs for textures require coordinates to fit in u16, which is why // we perform this conversion. u16::try_from(factory.get_capabilities().max_texture_size)