Browse Source

SDL_GetCSSCursorName: Don't assert on unrecognized cursor types.

These values are passed through from the calling app and shouldn't trigger
asserts when they are bogus.
Ryan C. Gordon 1 năm trước cách đây
mục cha
commit
57a15933cd
1 tập tin đã thay đổi với 0 bổ sung1 xóa
  1. 0 1
      src/video/SDL_video.c

+ 0 - 1
src/video/SDL_video.c

@@ -5573,7 +5573,6 @@ const char *SDL_GetCSSCursorName(SDL_SystemCursor id, const char **fallback_name
         return "w-resize";
 
     default:
-        SDL_assert(0);
         return "default";
     }
 }