Significant performance boost with blend mode none
authorSam Lantinga <slouken@libsdl.org>
Mon, 29 Dec 2008 19:48:01 +0000
changeset 2922 dc4523c7c22d
parent 2921 3c45e98e0547
child 2923 b23d4be6ed0e
Significant performance boost with blend mode none
src/video/SDL_renderer_gl.c
--- 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: