clean up worldgen and remove verbose logging
This commit is contained in:
parent
4d84122ef3
commit
34e534b6f2
11 changed files with 359 additions and 174 deletions
|
|
@ -352,7 +352,7 @@ pxl8_result pxl8_gfx_load_palette(pxl8_gfx* gfx, const char* path) {
|
|||
|
||||
pxl8_ase_destroy(&ase_file);
|
||||
pxl8_debug("Loaded palette with %u colors", copy_size);
|
||||
|
||||
|
||||
return PXL8_OK;
|
||||
}
|
||||
|
||||
|
|
@ -992,7 +992,15 @@ static inline u32 pxl8_sample_texture(pxl8_gfx* gfx, u32 texture_id, f32 u, f32
|
|||
if (!gfx->atlas) return 0;
|
||||
|
||||
const pxl8_atlas_entry* entry = pxl8_atlas_get_entry(gfx->atlas, texture_id);
|
||||
if (!entry || !entry->active) return 0;
|
||||
if (!entry || !entry->active) {
|
||||
static bool warned = false;
|
||||
if (!warned) {
|
||||
pxl8_warn("Texture sampling failed: texture_id=%u entry=%p active=%d",
|
||||
texture_id, (void*)entry, entry ? entry->active : 0);
|
||||
warned = true;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
u = u - floorf(u);
|
||||
v = v - floorf(v);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue