TileAtlasVX: RGSS2 knows no shadow layer

This commit is contained in:
Jonas Kulla 2014-08-16 01:26:50 +02:00
parent d439b1d833
commit ded18f9a02
1 changed files with 6 additions and 0 deletions

View File

@ -274,11 +274,13 @@ void build(TEXFBO &tf, Bitmap *bitmaps[BM_COUNT])
FBO::clear(); FBO::clear();
glState.clearColor.pop(); glState.clearColor.pop();
#ifdef RGSS3
SDL_Surface *shadow = createShadowSet(); SDL_Surface *shadow = createShadowSet();
TEX::bind(tf.tex); TEX::bind(tf.tex);
TEX::uploadSubImage(shadowArea.x*32, shadowArea.y*32, TEX::uploadSubImage(shadowArea.x*32, shadowArea.y*32,
shadow->w, shadow->h, shadow->pixels, GL_RGBA); shadow->w, shadow->h, shadow->pixels, GL_RGBA);
SDL_FreeSurface(shadow); SDL_FreeSurface(shadow);
#endif
Bitmap *bm; Bitmap *bm;
#define EXEC_BLITS(part) \ #define EXEC_BLITS(part) \
@ -627,7 +629,11 @@ void readTiles(Reader &reader, const Table &data,
for (int i = 0; i < 2; ++i) for (int i = 0; i < 2; ++i)
readLayer(reader, data, flags, ox, oy, w, h, i); readLayer(reader, data, flags, ox, oy, w, h, i);
#ifdef RGSS3
readShadowLayer(reader, data, ox, oy, w, h); readShadowLayer(reader, data, ox, oy, w, h);
#else
(void) createShadowSet; (void) readShadowLayer;
#endif
readLayer(reader, data, flags, ox, oy, w, h, 2); readLayer(reader, data, flags, ox, oy, w, h, 2);
} }