Mercurial > sdl-ios-xcode
diff src/video/SDL_renderer_gl.c @ 2922:dc4523c7c22d
Significant performance boost with blend mode none
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 29 Dec 2008 19:48:01 +0000 |
parents | bd518fc76f28 |
children | 7e21f7662208 |
line wrap: on
line diff
--- a/src/video/SDL_renderer_gl.c Thu Dec 25 05:39:54 2008 +0000 +++ b/src/video/SDL_renderer_gl.c Mon Dec 29 19:48:01 2008 +0000 @@ -444,7 +444,7 @@ if (blendMode != data->blendMode) { switch (blendMode) { case SDL_BLENDMODE_NONE: - data->glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_DECAL); + data->glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_REPLACE); data->glDisable(GL_BLEND); break; case SDL_BLENDMODE_MASK: