Search
lxdream.org :: lxdream/src/drivers/gl_common.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/drivers/gl_common.c
changeset 481:3b2d6c5a19ad
prev477:9a373f2ff009
next540:a3767018a96d
author nkeynes
date Wed Oct 31 12:05:23 2007 +0000 (12 years ago)
permissions -rw-r--r--
last change Fix miscellaneous warnings
file annotate diff log raw
1.1 --- a/src/drivers/gl_common.c Wed Oct 31 09:10:23 2007 +0000
1.2 +++ b/src/drivers/gl_common.c Wed Oct 31 12:05:23 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: gl_common.c,v 1.6 2007-10-31 09:10:23 nkeynes Exp $
1.6 + * $Id: gl_common.c,v 1.7 2007-10-31 12:05:23 nkeynes Exp $
1.7 *
1.8 * Common GL code that doesn't depend on a specific implementation
1.9 *
1.10 @@ -20,6 +20,7 @@
1.11
1.12 #include <GL/gl.h>
1.13 #include "dream.h"
1.14 +#include "pvr2/pvr2.h"
1.15 #include "drivers/gl_common.h"
1.16
1.17 extern uint32_t video_width, video_height;
1.18 @@ -166,7 +167,8 @@
1.19 glPixelStorei( GL_UNPACK_ROW_LENGTH, rowstride );
1.20 glBindTexture( GL_TEXTURE_RECTANGLE_ARB, render->buf_id );
1.21 glTexSubImage2D( GL_TEXTURE_RECTANGLE_ARB, 0, 0,0,
1.22 - frame->width, frame->height, format, type, frame->data );
1.23 + frame->width, frame->height, format, type, frame->data );
1.24 + return TRUE;
1.25 }
1.26
1.27 gboolean gl_display_blank( uint32_t colour )
.