diff --git a/src/graphics.c b/src/graphics.c index 9b94fae3c..e3a27c784 100644 --- a/src/graphics.c +++ b/src/graphics.c @@ -27,7 +27,7 @@ unsigned cmode = CM_FIRE; SDL_Surface *sdl_scrn; int sdl_scale = 1; -GLuint zoomTex, vidBuf, airBuf, fireAlpha, glowAlpha, blurAlpha, fireProg, partsFboTex, partsFbo, lensProg, partsTFX, partsTFY; +GLuint airProg, zoomTex, vidBuf, airBuf, fireAlpha, glowAlpha, blurAlpha, fireProg, partsFboTex, partsFbo, lensProg, partsTFX, partsTFY, airPV, airVY, airVX; int sandcolour_r = 0; int sandcolour_g = 0; @@ -1109,9 +1109,9 @@ void draw_icon(pixel *vid_buf, int x, int y, char ch, int flag) drawtext(vid_buf, x+3, y+2, t, 255, 255, 255, 255); } } -pixel air_buf[YRES/CELL][XRES/CELL]; void draw_air(pixel *vid) { +#ifndef OGLR int x, y, i, j; pixel c; if (cmode == CM_PERS)//this should never happen anyway @@ -1173,29 +1173,45 @@ void draw_air(pixel *vid) c = PIXRGB(r, g, b); } } -#ifdef OGLR - air_buf[y][x] = c; -#else for (j=0; j