Explorar el Código

SDL_SetHintWithPriority: Allow setting NULL hints.

Fixes #5120.
Ryan C. Gordon hace 4 años
padre
commit
55a07d91fa
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/SDL_hints.c

+ 1 - 1
src/SDL_hints.c

@@ -52,7 +52,7 @@ SDL_SetHintWithPriority(const char *name, const char *value,
     SDL_Hint *hint;
     SDL_Hint *hint;
     SDL_HintWatch *entry;
     SDL_HintWatch *entry;
 
 
-    if (!name || !value) {
+    if (!name) {
         return SDL_FALSE;
         return SDL_FALSE;
     }
     }