ericstoneking / 42

Simulation for spacecraft attitude control system analysis and design
255 stars 83 forks source link

GLD_TEXTURE_INDEX_nD warnings #135

Open johankytt opened 5 months ago

johankytt commented 5 months ago

Some, seemingly valid, configurations produce the following warning: UNSUPPORTED (log once): POSSIBLE ISSUE: unit 4 GLD_TEXTURE_INDEX_1D is unloadable and bound to sampler type (Float) - using zero texture because texture unloadable

So far I've seen units 0, 4 and 5 and indices 1D, 2D and 3D. The easiest way to reproduce this is to set the number of regions in the example "InOut" case to 0. Resetting the number of regions to the original value does not always clear the warning. Sometimes the warning appears with other values as well, however it is not a 100% reproducible. Changing the number of FOV-s may also produce this warning.

ericstoneking commented 5 months ago

I see this one myself reliably when I run "42 Demo". I haven't isolated it. The error message gets generated somewhere between the call to glutMainLoop and the first entry into Idle. I reckon that means that I'll have to check each texture until I find the offender. So it's on the to-do list, but low priority.