MiniFB.jl icon indicating copy to clipboard operation
MiniFB.jl copied to clipboard

First call to mfb_update doesn't do anything

Open pfitzseb opened this issue 3 years ago • 1 comments

Might be an init problem?

MWE: Execute the following step-by-step:

window = mfb_open_ex("my display", 800, 600, MiniFB.WF_RESIZABLE)
mfb_update(window, rand(Int32, 800, 600))
mfb_update(window, ones(Int32, 800, 600).*typemax(Int32))
mfb_update(window, zeros(Int32, 800, 600))

The first call to mfb_update doesn't seem to do anything -- you'll only see a while and then a black screen.

pfitzseb avatar Sep 07 '20 15:09 pfitzseb

Hmnn.. might be a "works as expected" since the general idea is to update once per frame. So maybe it takes the first call to set stuff up? Will ask upstream.

aviks avatar Sep 07 '20 18:09 aviks