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

Commit

Permalink
Fixed crash in software line drawing
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Dec 20, 2008
1 parent 3d523b2 commit 7661c89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/SDL_renderer_sw.c
Expand Up @@ -565,7 +565,7 @@ SW_RenderLine(SDL_Renderer * renderer, int x1, int y1, int x2, int y2)

if (data->renderer->LockTexture(data->renderer,
data->texture[data->current_texture],
NULL, 1, &data->surface.pixels,
&data->surface.clip_rect, 1, &data->surface.pixels,
&data->surface.pitch) < 0) {
return -1;
}
Expand Down

0 comments on commit 7661c89

Please sign in to comment.