openFrameworks
openFrameworks copied to clipboard
[ios simulator] - setupScreenPerspective failing with a NaN
it seems a variable called float aspect becomes a NaN after a division by zero
it seems this piece of code is returning some weird values (probably uninitialized memory) on simulator
ofRectangle ofGLRenderer::getNativeViewport() const {
GLint viewport[4]; // Where The Viewport Values Will Be Stored
glGetIntegerv(GL_VIEWPORT, viewport);
it seems glGetIntegerv(GL_VIEWPORT, viewport); and it is not changing values in array
returning one arbitrary rectangle
steps to reproduce: just test an empty project on simulator
Emulator maybe need to wait till first frame