Fixed crash in software line drawing

This commit is contained in:
Sam Lantinga
2008-12-20 13:53:54 +00:00
parent f2c09059c1
commit b9692e08c9

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