Results 812 comments of Andre Weissflog

Hmm, true, looks like this is a missing validation check in sokol-gfx. The intent is that you either provide no mipmaps (only the highest level surface), so ```sg_image_desc.num_mipmaps =1```, or...

This has been fixed in the meantime by dropping the GLES2 backend, and generally setting GL_TEXTURE_MAX_LEVEL when creating GL textures.

Yep I understand exactly what you have in mind and I've been considering and experimenting with allowing to put expensive "decoding / preparation work" into the IO thread (mainly in...

One thing that looks strange is that the cubemap's mipmap chain is incomplete (4 mipmaps means there's only 128, 64, 32 and 16 sized mipmaps, 4, 2 and 1 are...

...googled around a bit more: it seems that desktop GL allows incomplete mipmap chains as long as GL_TEXTURE_MAX_LEVEL is set (which sokol_gfx.h doesn't do). I haven't found definitive information for...

Oooh old issue. This has been fixed in the meantime. The sokol-gfx GL backend now generally sets GL_TEXTURE_MAX_LEVEL on texture creation, and the GLES2 backend has been removed.

Hi, there's an incomplete pull request and some discussion here: https://github.com/floooh/sokol/pull/173 I'd be interested in Wayland support, especially if it could one day replace the X11/GLX code, which is a...

Are these actually two separate things? (1) allow using sokol_fontstash.h and sokol_nuklear.h side by side (e.g. resolve any symbol collisions from stb_truetype.h via STBTT_STATIC: https://github.com/nothings/stb/blob/c9064e317699d2e495f36ba4f9ac037e88ee371a/stb_truetype.h#L98-L99 (which seems very simple) (2)...

Hmm, no this isn't supported unfortunately, it would be hard to do on all platforms. For instance MTKView only has a preferredFramesPerSecond method (https://developer.apple.com/documentation/metalkit/mtkview/1536027-preferredframespersecond?language=objc). Setting this to zero will simply...

Yeah a special value for "no sync" might work, I wouldn't use a new enum type though, just a special constant for "NOSYNC", and it would be need to be...