Fixed crash in software line drawing

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403351
This commit is contained in:
Sam Lantinga 2008-12-20 13:53:54 +00:00
parent af67559465
commit 6efea2c6d6

View file

@ -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;
}