dungeon_crawler
diff prototype/src/renderer.cc @ 21:0588f8a1a351
converting LIGHT meshes to lights
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Tue, 21 Aug 2012 06:33:36 +0300 |
parents | 48cfd351a9be |
children | fa8f89d06f6f |
line diff
1.1 --- a/prototype/src/renderer.cc Tue Aug 21 04:57:33 2012 +0300 1.2 +++ b/prototype/src/renderer.cc Tue Aug 21 06:33:36 2012 +0300 1.3 @@ -35,12 +35,17 @@ 1.4 1.5 static int fb_xsz, fb_ysz, tex_xsz, tex_ysz; 1.6 1.7 + 1.8 + 1.9 bool init_renderer(int xsz, int ysz) 1.10 { 1.11 + if(!GLEW_ARB_draw_buffers) { 1.12 + fprintf(stderr, "OpenGL implementation doesn't support multiple render targets\n"); 1.13 + return false; 1.14 + } 1.15 + 1.16 int max_draw_buf; 1.17 - 1.18 glGetIntegerv(GL_MAX_DRAW_BUFFERS_ARB, &max_draw_buf); 1.19 - CHECKGLERR; 1.20 printf("max draw buffers: %d\n", max_draw_buf); 1.21 if(max_draw_buf < MRT_COUNT) { 1.22 fprintf(stderr, "OpenGL implementation doesn't support enough draw buffers\n");