Added migration documentation for iOS window properties
Fixes https://github.com/libsdl-org/SDL/issues/9430
This commit is contained in:
1 parent
1938d25b7e
commit
5701c4f4bc
3 files changed
+60
-29
No files matched your search
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user