Explorar o código

offscreen: Fix bogus surface pointer assignment

Ethan Lee hai 1 ano
pai
achega
9ab140fad8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/video/offscreen/SDL_offscreenvulkan.c

+ 1 - 1
src/video/offscreen/SDL_offscreenvulkan.c

@@ -220,7 +220,7 @@ bool OFFSCREEN_Vulkan_CreateSurface(SDL_VideoDevice *_this,
                                    const struct VkAllocationCallbacks *allocator,
                                    const struct VkAllocationCallbacks *allocator,
                                    VkSurfaceKHR *surface)
                                    VkSurfaceKHR *surface)
 {
 {
-    surface = NULL;
+    *surface = VK_NULL_HANDLE;
 
 
     if (!_this->vulkan_config.loader_handle) {
     if (!_this->vulkan_config.loader_handle) {
         return SDL_SetError("Vulkan is not loaded");
         return SDL_SetError("Vulkan is not loaded");