Fixed crash in software line drawing
authorSam Lantinga <slouken@libsdl.org>
Sat, 20 Dec 2008 13:53:54 +0000
changeset 2889 67f84eb26ea1
parent 2888 32e8bbba1e94
child 2890 1863c8b59658
Fixed crash in software line drawing
src/video/SDL_renderer_sw.c
--- a/src/video/SDL_renderer_sw.c	Sat Dec 20 13:14:28 2008 +0000
+++ b/src/video/SDL_renderer_sw.c	Sat Dec 20 13:53:54 2008 +0000
@@ -565,7 +565,7 @@
 
     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;
     }