Fixed crash in software line drawing
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403351
This commit is contained in:
parent
af67559465
commit
6efea2c6d6
1 changed files with 1 additions and 1 deletions
|
@ -565,7 +565,7 @@ SW_RenderLine(SDL_Renderer * renderer, int x1, int y1, int x2, int y2)
|
||||||
|
|
||||||
if (data->renderer->LockTexture(data->renderer,
|
if (data->renderer->LockTexture(data->renderer,
|
||||||
data->texture[data->current_texture],
|
data->texture[data->current_texture],
|
||||||
NULL, 1, &data->surface.pixels,
|
&data->surface.clip_rect, 1, &data->surface.pixels,
|
||||||
&data->surface.pitch) < 0) {
|
&data->surface.pitch) < 0) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue