Search
lxdream.org :: lxdream/src/drivers/video_gl.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/drivers/video_gl.c
changeset 1246:887f7b0ac7f3
prev1244:6b54ef5ed413
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_gl.c Tue Feb 28 18:22:52 2012 +1000
1.2 +++ b/src/drivers/video_gl.c Sat Mar 03 00:17:36 2012 +1000
1.3 @@ -99,7 +99,7 @@
1.4 /**
1.5 * Setup the gl context for writes to the display output.
1.6 */
1.7 -static void gl_framebuffer_setup()
1.8 +void gl_framebuffer_setup()
1.9 {
1.10 glViewport( 0, 0, video_width, video_height );
1.11 glLoadMatrixf(video_box.viewMatrix);
1.12 @@ -113,14 +113,14 @@
1.13 glEnableClientState( GL_TEXTURE_COORD_ARRAY );
1.14 }
1.15
1.16 -static void gl_framebuffer_cleanup()
1.17 +void gl_framebuffer_cleanup()
1.18 {
1.19 glDisableClientState( GL_VERTEX_ARRAY );
1.20 glDisableClientState( GL_COLOR_ARRAY );
1.21 glDisableClientState( GL_TEXTURE_COORD_ARRAY );
1.22 }
1.23 #else
1.24 -static void gl_framebuffer_setup()
1.25 +void gl_framebuffer_setup()
1.26 {
1.27 glViewport( 0, 0, video_width, video_height );
1.28 glBlendFunc( GL_ONE, GL_ZERO );
1.29 @@ -132,7 +132,7 @@
1.30 glsl_set_basic_shader_primary_texture(0);
1.31 }
1.32
1.33 -static void gl_framebuffer_cleanup()
1.34 +void gl_framebuffer_cleanup()
1.35 {
1.36 glsl_clear_shader();
1.37 }
.