mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-07 07:00:48 +00:00
GPU Metal: Set texture to NULL even if AcquireSwapchainTexture fails
This commit is contained in:
parent
0e5a49542d
commit
de40d6bae0
1 changed files with 2 additions and 0 deletions
|
|
@ -3598,6 +3598,8 @@ static bool METAL_AcquireSwapchainTexture(
|
|||
MetalWindowData *windowData;
|
||||
CGSize drawableSize;
|
||||
|
||||
*texture = NULL;
|
||||
|
||||
windowData = METAL_INTERNAL_FetchWindowData(window);
|
||||
if (windowData == NULL) {
|
||||
SET_STRING_ERROR_AND_RETURN("Window is not claimed by this SDL_GpuDevice", false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue