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 424:421d68e78c46
prev352:f0df7a6d4703
next429:e581b90c3fb3
author nkeynes
date Sun Oct 07 05:42:25 2007 +0000 (16 years ago)
permissions -rw-r--r--
last change Fix compilation warnings
file annotate diff log raw
1.1 --- a/src/drivers/gl_common.c Sun Feb 11 10:09:32 2007 +0000
1.2 +++ b/src/drivers/gl_common.c Sun Oct 07 05:42:25 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: gl_common.c,v 1.1 2007-02-11 10:09:32 nkeynes Exp $
1.6 + * $Id: gl_common.c,v 1.2 2007-10-07 05:42:25 nkeynes Exp $
1.7 *
1.8 * Common GL code that doesn't depend on a specific implementation
1.9 *
1.10 @@ -77,7 +77,6 @@
1.11 GLenum type = colour_formats[frame->colour_format].type;
1.12 GLenum format = colour_formats[frame->colour_format].format;
1.13 int bpp = colour_formats[frame->colour_format].bpp;
1.14 - GLint texid;
1.15
1.16 glViewport( 0, 0, video_width, video_height );
1.17 glMatrixMode(GL_PROJECTION);
1.18 @@ -150,9 +149,9 @@
1.19 glFinish();
1.20 GLenum type = colour_formats[buffer->colour_format].type;
1.21 GLenum format = colour_formats[buffer->colour_format].format;
1.22 - int line_size = buffer->width * colour_formats[buffer->colour_format].bpp;
1.23 - int size = line_size * buffer->height;
1.24 - int rowstride = (buffer->rowstride / colour_formats[buffer->colour_format].bpp) - buffer->width;
1.25 + // int line_size = buffer->width * colour_formats[buffer->colour_format].bpp;
1.26 + // int size = line_size * buffer->height;
1.27 + // int rowstride = (buffer->rowstride / colour_formats[buffer->colour_format].bpp) - buffer->width;
1.28 // glPixelStorei( GL_PACK_ROW_LENGTH, rowstride );
1.29
1.30 glReadPixels( 0, 0, buffer->width, buffer->height, format, type, target );
.