Skip to content

Commit

Permalink
Fixed colored outlining not applied to graphics using upscale&sharpen
Browse files Browse the repository at this point in the history
  • Loading branch information
danij-deng committed Jan 3, 2012
1 parent a567f85 commit cf8a74f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions doomsday/engine/portable/src/gl_texmanager.c
Expand Up @@ -876,6 +876,9 @@ static uploadcontentmethod_t prepareVariant(texturevariant_t* tex, image_t* imag
}
else if(0 != image->paletteId)
{
if(fillOutlines && 0 != image->paletteId && (image->flags & IMGF_IS_MASKED))
ColorOutlinesIdx(image->pixels, image->size.width, image->size.height);

if(monochrome && !scaleSharp)
GL_DeSaturatePalettedImage(image->pixels, R_ToColorPalette(image->paletteId), image->size.width, image->size.height);

Expand Down Expand Up @@ -914,7 +917,8 @@ static uploadcontentmethod_t prepareVariant(texturevariant_t* tex, image_t* imag

// Back to paletted+alpha?
if(monochrome)
{ // No. We'll convert from RGB(+A) to Luminance(+A) and upload as is.
{
// No. We'll convert from RGB(+A) to Luminance(+A) and upload as is.
// Replace the old buffer.
GL_ConvertToLuminance(image, true);
AmplifyLuma(image->pixels, image->size.width, image->size.height, image->pixelSize == 2);
Expand All @@ -937,9 +941,6 @@ static uploadcontentmethod_t prepareVariant(texturevariant_t* tex, image_t* imag
// Lets not do this again.
noSmartFilter = true;
}

if(fillOutlines && 0 != image->paletteId && (image->flags & IMGF_IS_MASKED))
ColorOutlinesIdx(image->pixels, image->size.width, image->size.height);
}
else if(image->pixelSize > 2)
{
Expand Down

0 comments on commit cf8a74f

Please sign in to comment.