Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ios simulator] - setupScreenPerspective failing with a NaN #8115

Open
dimitre opened this issue Sep 7, 2024 · 1 comment
Open

[ios simulator] - setupScreenPerspective failing with a NaN #8115

dimitre opened this issue Sep 7, 2024 · 1 comment

Comments

@dimitre
Copy link
Member

dimitre commented Sep 7, 2024

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);
Screenshot 2024-09-07 at 11 53 12

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

@danoli3
Copy link
Member

danoli3 commented Sep 7, 2024

Emulator maybe need to wait till first frame

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants