Skip to content

Commit

Permalink
Fixed: RGBA texture processing with gamma multiplier
Browse files Browse the repository at this point in the history
If texture gamma multiplier is in effect RGBA textures were uploaded
with an uninitialized alpha channel.
  • Loading branch information
danij-deng committed Jan 9, 2012
1 parent 2c54549 commit 255d2dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion doomsday/engine/portable/src/gl_texmanager.c
Expand Up @@ -1882,8 +1882,10 @@ void GL_UploadTextureContent(const texturecontent_t* content)
dst[CR] = gammaTable[src[CR]];
dst[CG] = gammaTable[src[CG]];
dst[CB] = gammaTable[src[CB]];
src += comps;
if(comps == 4)
dst[CA] = src[CA];
dst += comps;
src += comps;
}

if(localBuffer)
Expand Down

0 comments on commit 255d2dd

Please sign in to comment.