mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-05 19:08:12 +00:00
GPU Metal: Set texture to NULL even if AcquireSwapchainTexture fails
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user