OpenGL on iOS: Black screen #17014
Replies: 6 comments 7 replies
-
Are you checking with actual device or simulator? |
Beta Was this translation helpful? Give feedback.
-
Also, you need to use OpenGL rendering mode for the entire app (Metal is used by default) |
Beta Was this translation helpful? Give feedback.
-
Tested both, any example how to set the rendering mode? I don't find anything related in the documentation. I suspect it's something with Update: Found it (for future reference): protected override AppBuilder CustomizeAppBuilder(AppBuilder builder)
{
return base.CustomizeAppBuilder(builder)
.With(new iOSPlatformOptions{RenderingMode = [iOSRenderingMode.OpenGl]})
.WithInterFont();
} Update 2: I see the renderer is listed as |
Beta Was this translation helpful? Give feedback.
-
WithInterFont shouldn't really have any effect on rendering pipeline.
Yes. Which is why Metal is enabled by default now, and not OpenGL. |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
Hey, is there anything new to this issue? I tried to use the openGL rendering mode but my app crashes with and without the "WithInterFont" decorator. |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
OpenGlControlBase doesn't render anything on iOS, the debug overlays frame counter also do not count upwards, as if no frame is being rendered.
To Reproduce
Run ControlCatalog sample app on iOS
Expected behavior
openGL should be rendered (ideally via ANGLE).
Avalonia version
11.2.0-beta1
OS
iOS
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions