Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Significant performance boost with blend mode none
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Dec 29, 2008
1 parent 254f1ce commit f4c59ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/SDL_renderer_gl.c
Expand Up @@ -444,7 +444,7 @@ SetBlendMode(GL_RenderData * data, int blendMode)
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:
Expand Down

0 comments on commit f4c59ea

Please sign in to comment.