From 73a91acf6740b4a741b1916d24a0abbec1c98369 Mon Sep 17 00:00:00 2001 From: eros71 <16540103+eros71-dev@users.noreply.github.com> Date: Wed, 24 Jun 2026 15:07:45 +0200 Subject: [PATCH] Remove NPOT texture check in DJUI Doesn't seem to crash anymore, not needed, tested and NPOT textures work under both renderers (OpenGL and DX11) --- src/pc/djui/djui_hud_utils.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/pc/djui/djui_hud_utils.c b/src/pc/djui/djui_hud_utils.c index b29bf3b3a..c3a1f9017 100644 --- a/src/pc/djui/djui_hud_utils.c +++ b/src/pc/djui/djui_hud_utils.c @@ -755,11 +755,6 @@ static inline bool is_power_of_two(u32 n) { } static void djui_hud_render_texture_raw(const Texture* texture, u32 width, u32 height, u8 fmt, u8 siz, f32 x, f32 y, f32 scaleW, f32 scaleH, struct InterpHud *interp) { - if (!is_power_of_two(width) || !is_power_of_two(height)) { - LOG_LUA_LINE("Tried to render DJUI HUD texture with NPOT width or height"); - return; - } - if (!texture) { return; } gDjuiHudUtilsZ += 0.001f;