changeset 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 3c45e98e0547
children b23d4be6ed0e
files src/video/SDL_renderer_gl.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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: