changeset 2889:67f84eb26ea1

Fixed crash in software line drawing
author Sam Lantinga <slouken@libsdl.org>
date Sat, 20 Dec 2008 13:53:54 +0000
parents 32e8bbba1e94
children 1863c8b59658
files src/video/SDL_renderer_sw.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;
     }