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 656:031d23fa6d0b
prev635:76c63aac3590
next669:ab344e42bca9
author nkeynes
date Wed Apr 02 01:46:58 2008 +0000 (12 years ago)
permissions -rw-r--r--
last change Add configure-time checks for fbo and shader functions in libGL (so linking
doesn't fail on really old libGL implementations)
file annotate diff log raw
1.1 --- a/src/drivers/gl_fbo.c Thu Feb 14 13:54:11 2008 +0000
1.2 +++ b/src/drivers/gl_fbo.c Wed Apr 02 01:46:58 2008 +0000
1.3 @@ -30,6 +30,8 @@
1.4 #include "drivers/video_gl.h"
1.5 #include "pvr2/glutil.h"
1.6
1.7 +#ifdef HAVE_OPENGL_FBO
1.8 +
1.9 #define MAX_FRAMEBUFFERS 2
1.10 #define MAX_TEXTURES_PER_FB 4
1.11
1.12 @@ -288,3 +290,14 @@
1.13 return gl_read_render_buffer( target, buffer, rowstride, format );
1.14 }
1.15
1.16 +#else
1.17 +gboolean gl_fbo_is_supported()
1.18 +{
1.19 + return FALSE;
1.20 +}
1.21 +
1.22 +void gl_fbo_init( display_driver_t driver )
1.23 +{
1.24 +}
1.25 +
1.26 +#endif
.