Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions lua/outfitter/cl_util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1161,8 +1161,16 @@ function ValidateVVDVerts(f)
if not dat then return RETURN(nil,err) end

local num = dat.numLODVertexes[1]
if num > 64534 --[[magic]] then return RETURN(false,'maxverts',num) end
return RETURN(true,num)

if BRANCH ~= "x86-64"
if num > 64534 --[[magic]] then return RETURN(false,'maxverts',num) end
return RETURN(true,num)
else
-- dmx models can easily exceed 64K but we're not sure of the impact of increasing limits on 32-bit
-- so for now expanded limits are 64-bit only
if num > 131072 then return RETURN(false, 'maxverts', num) end
return RETURN(true,num)
end
end

local r_drawdecals = GetConVar"r_drawdecals"
Expand Down