• Sam Lantinga's avatar
    Fixed bug #761 · ba8fff9a
    Sam Lantinga authored
     Mason Wheeler      2009-07-05 09:28:33 PDT
    
    This patch fixes two issues with SDL_CreateTextureFromSurface.
    
    1.  If no renderer is available, the function will return 0 without calling
    SDL_SetError. (It does this in other places as well, but it appears that in
    these cases, SDL_SetError was already called by a previous function call.)
    2.  Removal of a dead code block that checks for an impossible return value.
    
    --HG--
    extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403907
    ba8fff9a
Name
Last commit
Last update
..
atomic Loading commit data...
audio Loading commit data...
cpuinfo Loading commit data...
events Loading commit data...
file Loading commit data...
haptic Loading commit data...
joystick Loading commit data...
libm Loading commit data...
loadso Loading commit data...
main Loading commit data...
power Loading commit data...
stdlib Loading commit data...
thread Loading commit data...
timer Loading commit data...
video Loading commit data...
SDL.c Loading commit data...
SDL_compat.c Loading commit data...
SDL_error.c Loading commit data...
SDL_error_c.h Loading commit data...
SDL_fatal.c Loading commit data...
SDL_fatal.h Loading commit data...