Fixed bug 731 - No mechanism to extract the NSView for 3d library
This commit is contained in:
parent
2f9ac5db94
commit
97fba74bda
2 changed files with 3 additions and 0 deletions
|
@ -1131,6 +1131,7 @@ Cocoa_GetWindowWMInfo(_THIS, SDL_Window * window, SDL_SysWMinfo * info)
|
|||
if (info->version.major <= SDL_MAJOR_VERSION) {
|
||||
info->subsystem = SDL_SYSWM_COCOA;
|
||||
info->info.cocoa.window = nswindow;
|
||||
info->info.cocoa.view = [nswindow contentView];
|
||||
return SDL_TRUE;
|
||||
} else {
|
||||
SDL_SetError("Application not compiled with SDL %d.%d\n",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue