Restored SDL_BLENDMODE_MOD for MAME

This commit is contained in:
Sam Lantinga 2011-02-04 19:50:56 -08:00
parent 31f1dceb0c
commit 8209e2a9a9
21 changed files with 1187 additions and 156 deletions

View file

@ -529,6 +529,11 @@ GL_SetBlendMode(GL_RenderData * data, int blendMode)
data->glEnable(GL_BLEND);
data->glBlendFunc(GL_SRC_ALPHA, GL_ONE);
break;
case SDL_BLENDMODE_MOD:
data->glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);
data->glEnable(GL_BLEND);
data->glBlendFunc(GL_ZERO, GL_SRC_COLOR);
break;
}
data->blendMode = blendMode;
}