Search
lxdream.org :: lxdream/src/drivers/gl_fbo.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/drivers/gl_fbo.c
changeset 429:e581b90c3fb3
prev424:421d68e78c46
next438:f4d7774967d1
author nkeynes
date Mon Oct 08 11:52:13 2007 +0000 (12 years ago)
permissions -rw-r--r--
last change Fix compilation warnings
file annotate diff log raw
1.1 --- a/src/drivers/gl_fbo.c Sun Oct 07 05:42:25 2007 +0000
1.2 +++ b/src/drivers/gl_fbo.c Mon Oct 08 11:52:13 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: gl_fbo.c,v 1.2 2007-10-07 05:42:25 nkeynes Exp $
1.6 + * $Id: gl_fbo.c,v 1.3 2007-10-08 11:49:35 nkeynes Exp $
1.7 *
1.8 * GL framebuffer-based driver shell. This requires the EXT_framebuffer_object
1.9 * extension, but is much nicer/faster/etc than pbuffers when it's available.
1.10 @@ -39,7 +39,7 @@
1.11 static gboolean gl_fbo_display_render_buffer( render_buffer_t buffer );
1.12 static gboolean gl_fbo_display_frame_buffer( frame_buffer_t buffer );
1.13 static gboolean gl_fbo_display_blank( uint32_t colour );
1.14 -static gboolean gl_fbo_read_render_buffer( render_buffer_t buffer, char *target );
1.15 +static gboolean gl_fbo_read_render_buffer( render_buffer_t buffer, unsigned char *target );
1.16
1.17 extern uint32_t video_width, video_height;
1.18
1.19 @@ -295,7 +295,7 @@
1.20 return gl_display_blank( colour );
1.21 }
1.22
1.23 -static gboolean gl_fbo_read_render_buffer( render_buffer_t buffer, char *target )
1.24 +static gboolean gl_fbo_read_render_buffer( render_buffer_t buffer, unsigned char *target )
1.25 {
1.26 int fb = gl_fbo_get_framebuffer( buffer->width, buffer->height );
1.27 gl_fbo_attach_texture( fb, buffer->buf_id );
.