windowjs / windowjs

Window.js is an open-source Javascript runtime for desktop graphics programming.

Home Page:https://windowjs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix glClear not working on some drivers

joaodasilva opened this issue · comments

See this TODO:

// TODO: figure why this is needed on some machines and not others.

The framebuffer should be cleared with glClear(GL_COLOR_BUFFER_BIT).

However, that doesn't seem to clear anything in an older iMac with a Radean R9 M390 GPU.

This is probably a syncing issue between the GL contexts, or GL state that needs to be reset.