Commit 6efea2c6 authored by Sam Lantinga's avatar Sam Lantinga

Fixed crash in software line drawing

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403351
parent af675594
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment