-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Try getting renderer before creating it #17
Conversation
but. Who create render befor this? |
It doesn't matter to unique_ptr. SDL_CreateRenderer might be called in SDL_GetWindowSurface.
And SDL_CreateRenderer should not be called twice without calling SDL_DestroyRenderer.
|
话说我还是第一次用git这个PR功能 要不你再处理一下冲突然后合并?@seven332 |
弄好了 |
麻烦你了 |
SDL_GetWindowSurface is called in ZeroEngine::Init_SDL, renderer might be created on Android and maybe other platforms. SDL_CreateRenderer will fail if renderer is created. So check existing renderer first.