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 OpenGL ES version string incorrect formatting #1249
Comments
We solely rely on the community for the iOS implementation. If you can, please follow our Contribution Guidelines to provide a patch (and report future bugs). Thanks. |
@kingnobody8 do you still have this issue? What are the symptoms and the reproduction steps? |
Yes this issue still persists. To see this, just run anything on iOS, and put a breakpoint inside function
|
Just out of curiosity... what does the exact version string look like on iOS? |
Examples are given in the first post: dev iPad Air: "
|
@kingnobody8 Try out #1390. |
Looks good. Thank you very much. I'll close this issue once it's merged into main. |
SFML calls glGetVersionString in GLContext.cpp. It assumes the first 3 characters of the string are major.minor. example (on windows PC): "4.5.0 NVIDEA 382.53"
However, on iOS devices this format is not consistent. Here are examples below:
dev iPad Air: "OpenGL ES-CM 1.1 Apple A7 GPU - 95.58"
dev iPhone SE: "OpenGL ES-CM 1.1 Metal - 33"
sim iPhone 5: "OpenGL ES-CM 1.1 APPLE-14.0.15"
sim iPad Pro 9.7in: "OpenGL ES-CM 1.1 APPLE-14.0.15"
this causes some undefined behavior with rendering, because sfml doesn't use the correct opengl es version.
Please implement a fix to take into account iOS formatting.
I also recommend this be tested for android as well, unfortunately I am not set with android to confirm or deny if there is even a problem for that platform.
The text was updated successfully, but these errors were encountered: