parent
d7c6eb81cd
commit
2a4697c04f
|
@ -2434,15 +2434,13 @@ void SDLDrawingPanel::DrawingPanelInit()
|
|||
}
|
||||
|
||||
sdlwindow = SDL_CreateWindowWithProperties(props);
|
||||
|
||||
SDL_DestroyProperties(props);
|
||||
|
||||
if (sdlwindow == NULL) {
|
||||
systemScreenMessage(_("Failed to create SDL window"));
|
||||
return;
|
||||
}
|
||||
|
||||
if (props != NULL)
|
||||
SDL_DestroyProperties(props);
|
||||
|
||||
if (OPTION(kSDLRenderer) == wxString("default")) {
|
||||
renderer = SDL_CreateRenderer(sdlwindow, NULL);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue