Commit 63191e7a authored by Sam Lantinga's avatar Sam Lantinga

Significant performance boost with blend mode none

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403384
parent 5ab1d776
...@@ -444,7 +444,7 @@ SetBlendMode(GL_RenderData * data, int blendMode) ...@@ -444,7 +444,7 @@ SetBlendMode(GL_RenderData * data, int blendMode)
if (blendMode != data->blendMode) { if (blendMode != data->blendMode) {
switch (blendMode) { switch (blendMode) {
case SDL_BLENDMODE_NONE: 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); data->glDisable(GL_BLEND);
break; break;
case SDL_BLENDMODE_MASK: case SDL_BLENDMODE_MASK:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment