Added migration documentation for iOS window properties

Fixes https://github.com/libsdl-org/SDL/issues/9430
This commit is contained in:
Sam Lantinga
2024-06-06 10:55:09 -07:00
parent 1938d25b7e
commit 5701c4f4bc
3 changed files with 60 additions and 29 deletions

View File

@@ -171,6 +171,11 @@ SDL_GLContext UIKit_GL_CreateContext(SDL_VideoDevice *_this, SDL_Window *window)
return NULL;
}
SDL_PropertiesID props = SDL_GetWindowProperties(window);
SDL_SetNumberProperty(props, SDL_PROP_WINDOW_UIKIT_OPENGL_FRAMEBUFFER_NUMBER, view.drawableFramebuffer);
SDL_SetNumberProperty(props, SDL_PROP_WINDOW_UIKIT_OPENGL_RENDERBUFFER_NUMBER, view.drawableRenderbuffer);
SDL_SetNumberProperty(props, SDL_PROP_WINDOW_UIKIT_OPENGL_RESOLVE_FRAMEBUFFER_NUMBER, view.msaaResolveFramebuffer);
/* The context owns the view / drawable. */
context.sdlView = view;