Search
lxdream.org :: lxdream/src/drivers/video_glx.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/drivers/video_glx.c
changeset 1246:887f7b0ac7f3
prev1236:d93175c36387
next1251:b8ab59d39756
author nkeynes
date Sat Mar 03 00:17:36 2012 +1000 (8 years ago)
permissions -rw-r--r--
last change Fix GLX compile
file annotate diff log raw
1.1 --- a/src/drivers/video_glx.c Fri Feb 24 21:17:47 2012 +1000
1.2 +++ b/src/drivers/video_glx.c Sat Mar 03 00:17:36 2012 +1000
1.3 @@ -397,13 +397,14 @@
1.4 int bpp = colour_formats[frame->colour_format].bpp;
1.5 int rowstride = (frame->rowstride / bpp) - frame->width;
1.6
1.7 - gl_reset_state();
1.8 + gl_framebuffer_setup();
1.9 glPixelStorei( GL_UNPACK_ROW_LENGTH, rowstride );
1.10 glRasterPos2f(0.375, frame->height-0.375);
1.11 glPixelZoom( 1.0, 1.0 );
1.12 glDrawPixels( frame->width, frame->height, format, type, frame->data );
1.13 glPixelStorei( GL_UNPACK_ROW_LENGTH, 0 );
1.14 glFlush();
1.15 + gl_framebuffer_cleanup();
1.16 }
1.17
1.18 static void glx_pbuffer_display_blank( uint32_t colour )
.