Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Added missing return values
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Nov 17, 2009
1 parent 1744287 commit 1663a16
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/video/SDL_renderer_gl.c
Expand Up @@ -1292,6 +1292,8 @@ GL_RenderReadPixels(SDL_Renderer * renderer, const SDL_Rect * rect,
SDL_memcpy(src, tmp, length);
}
SDL_stack_free(tmp);

return 0;
}

static int
Expand Down Expand Up @@ -1321,6 +1323,8 @@ GL_RenderWritePixels(SDL_Renderer * renderer, const SDL_Rect * rect,

data->glReadPixels(rect->x, rect->y+rect->h-1, rect->w, rect->h,
format, type, pixels);

return 0;
}

static void
Expand Down

0 comments on commit 1663a16

Please sign in to comment.