github JRickey/BattleShip v0.8.1-beta

4 hours ago

Bug fixes

VS results photo wipe + OpenGL FB-passthrough (#157)

  • VS-match → results-screen photo wipe rendered upside-down on D3D11. Bridge call now passes v0/v1 swapped so the registered FB sub-rect matches the transition mesh's bottom-up UV authoring; libultraship's FbUvTransform handles the resulting negative scaleV.
  • On OpenGL the same path was doubly broken: GfxRenderingAPIOGL::CreateFramebuffer never registered the FB color attachment in textures[], so the GLSL fragment shader's texture_width/height uniforms read 0 and 0.5/texSize divided by zero in clamp() and filter3point() (1P black, VS halt). Once that was fixed, OGL still rendered Y-inverted because OGL's FBO sample direction is opposite of its render direction when invertY=true. New GfxRenderingAPI::FbNeedsSampleVFlip (default false; OGL returns invertY) lets the FB-passthrough hook apply a post-transform V-flip without touching D3D11/Metal.

D3D11, OpenGL, and Metal all render the photo wipe and 1P stage-clear wallpaper right-side-up after this release.

Closes #157.


Don't miss a new BattleShip release

NewReleases is sending notifications on new releases.