dungeon_crawler

diff prototype/src/renderer_deferred.cc @ 69:45172d087ebe

fixed some windows compatibility crap fixed a terrible stack overrun in psys (TODO: remember to fix in libpsys too)
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 07 Oct 2012 03:42:44 +0200
parents fc2b3d06d07c
children a27528035e20
line diff
     1.1 --- a/prototype/src/renderer_deferred.cc	Sun Oct 07 02:05:11 2012 +0300
     1.2 +++ b/prototype/src/renderer_deferred.cc	Sun Oct 07 03:42:44 2012 +0200
     1.3 @@ -61,11 +61,11 @@
     1.4  	height = ysz;
     1.5  
     1.6  	if(!GLEW_ARB_texture_float) {
     1.7 -		fprintf(stderr, "%s: error: no floating point texture support\n", __func__);
     1.8 +		fprintf(stderr, "%s: error: no floating point texture support\n", __FUNCTION__);
     1.9  		return false;
    1.10  	}
    1.11  	if(!GLEW_ARB_draw_buffers) {
    1.12 -		fprintf(stderr, "%s: error: no multiple render target support\n", __func__);
    1.13 +		fprintf(stderr, "%s: error: no multiple render target support\n", __FUNCTION__);
    1.14  		return false;
    1.15  	}
    1.16  
    1.17 @@ -73,7 +73,7 @@
    1.18  	glGetIntegerv(GL_MAX_DRAW_BUFFERS_ARB, &max_draw_buf);
    1.19  	printf("max draw buffers: %d\n", max_draw_buf);
    1.20  	if(max_draw_buf < MRT_COUNT) {
    1.21 -		fprintf(stderr, "%s: error: not enough draw buffers (%d), %d required\n", __func__, max_draw_buf, MRT_COUNT);
    1.22 +		fprintf(stderr, "%s: error: not enough draw buffers (%d), %d required\n", __FUNCTION__, max_draw_buf, MRT_COUNT);
    1.23  		return false;
    1.24  	}
    1.25  	num_draw_bufs = MRT_COUNT;