src/render/SDL_render.c
changeset 7409 8b5ae6ff6a49
parent 7339 2d2fd56db9b7
child 7419 a22566f42281
     1.1 --- a/src/render/SDL_render.c	Thu Jul 11 21:51:09 2013 -0700
     1.2 +++ b/src/render/SDL_render.c	Thu Jul 11 22:04:16 2013 -0700
     1.3 @@ -764,6 +764,13 @@
     1.4  
     1.5      CHECK_TEXTURE_MAGIC(texture, -1);
     1.6  
     1.7 +    if (!pixels) {
     1.8 +        return SDL_InvalidParamError("pixels");
     1.9 +    }
    1.10 +    if (!pitch) {
    1.11 +        return SDL_InvalidParamError("pitch");
    1.12 +    }
    1.13 +
    1.14      if (!rect) {
    1.15          full_rect.x = 0;
    1.16          full_rect.y = 0;