Hi, 

I just noticed a very strange regression after I upgraded to the latest 
incoming last Friday:

Basically this fairly old code produces the wrong values for GlyphSize now:

https://github.com/floooh/oryol/blob/master/code/Modules/Dbg/text/debugTextRenderer.cc#L133

It's not the glm::vec2 class or any alignment issue, the issue also happens 
when rewriting like this:

const float w = 8.0f / Gfx::PassAttrs().FramebufferWidth
const float glyphWidth = w * 4.0f;

(FramebufferWidth is an int, usually 800, the 4.0f factor is from 2.0f * 
textScale (textScale being 2.0f)). The resulting glyphWidth is too small 
(0.0025f instead of 0.04f).

Rewriting the expression to (32.0f / Gfx::PassAttrs().FramebufferWidth) 
works correctly.

Compiling a native version in Xcode produces correct code. It must be a 
very recent emscripten regression (or clang 4.0?).

Anybody seen similar problems after updating incoming?

It's quite late now, I'll try to find out more tomorrow (do a fresh install 
from scratch, write isolated test case, do a bisect, etc...).

Cheers,
-Floh.

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to