The initial width always matches, I'm kind of stuck with this, maybe it is something stupid and not related that I'm doing in my code.
-
-
Prikaži ovu nitHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
-
-
Fixed! the glutin docs have the solution "Some platforms (macOS, Wayland) require being manually updated when their window or surface is resized." https://docs.rs/glutin/0.22.1/glutin/struct.ContextWrapper.html#method.resize … Thanks so much to everybody that helps me!
Prikaži ovu nit -
btw: I'll add support for webgpu once I have a (more or less) stable version
Prikaži ovu nit
Kraj razgovora
Novi razgovor -
-
-
This looks like the sort of stuff that happens in macOS because of the way it handles scaling in HiDPI screens. A similar issue to https://github.com/raysan5/raylib/issues/814 … Hope it helps you to figure this out
-
In summary, you need to get the DPR which I assume in your case is 2 and use that value to scale all your coordinates
- Još 2 druga odgovora
Novi razgovor -
-
-
What values are you passing to each glOrtho and glViewport?
-
viewport is always x:0, y:0, w:window.width, h:window.height and I'm not using glOrtho just passing a matrix to the shader, the values of the ortho matrix are: left:0, right:window.width, top: 0, bottom:window.height.
Kraj razgovora
Novi razgovor -
-
-
Just a shot in the dark but maybe you are not supposed to give width but x1 (x0+width).
-
nop, I'm using not "normalized" coords, the shader is doing the calcs. Thanks
Kraj razgovora
Novi razgovor -
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.