Satin API

Satin API

3M Downloads

Initial frame buffer is quarter size on OSX

grondag opened this issue ยท 0 comments

commented

Describe the bug

On OSX in windowed mode (haven't tried full screen) the frame buffer appears to be quarter size (each dimension halved).

Setting the window size uniform directly when the first frame is rendered does not prevent the problem, even though trace code showed the window size does not change on subsequent frames. Resizing the window fixes the problem.

A workaround (implemented for now) is to invoke the ResolutionChangeCallback on the second frame after each render state invalidation.

To Reproduce

See https://github.com/grondag/doomtree/blob/20927a5b4b559ebd7f74905eeb68948ed1ea3c50/src/main/java/grondag/doomtree/render/DoomEffectRender.java#L30

Environment:

  • Minecraft Version 1.14.4
  • Satin Version 1.3.2
  • Dev Environment

2019-11-02_14 23 26