mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
Fix blockiness when drawing to gui overlays using standard draw commands
This commit is contained in:
parent
734688ff7e
commit
a83afa07ea
2 changed files with 3 additions and 0 deletions
|
|
@ -61,6 +61,7 @@ void GFXDrawUtil::_setupStateBlocks()
|
||||||
bitmapStretchSR.setZReadWrite(false);
|
bitmapStretchSR.setZReadWrite(false);
|
||||||
bitmapStretchSR.setBlend(true, GFXBlendSrcAlpha, GFXBlendInvSrcAlpha);
|
bitmapStretchSR.setBlend(true, GFXBlendSrcAlpha, GFXBlendInvSrcAlpha);
|
||||||
bitmapStretchSR.samplersDefined = true;
|
bitmapStretchSR.samplersDefined = true;
|
||||||
|
bitmapStretchSR.setColorWrites(true, true, true, false);
|
||||||
|
|
||||||
// Linear: Create wrap SB
|
// Linear: Create wrap SB
|
||||||
bitmapStretchSR.samplers[0] = GFXSamplerStateDesc::getWrapLinear();
|
bitmapStretchSR.samplers[0] = GFXSamplerStateDesc::getWrapLinear();
|
||||||
|
|
|
||||||
|
|
@ -50,6 +50,8 @@ FontRenderBatcher::FontRenderBatcher() : mStorage(8096)
|
||||||
// result in the text always being black. This may not be the case in OpenGL
|
// result in the text always being black. This may not be the case in OpenGL
|
||||||
// so it may have to change. -bramage
|
// so it may have to change. -bramage
|
||||||
f.samplers[0].textureColorOp = GFXTOPAdd;
|
f.samplers[0].textureColorOp = GFXTOPAdd;
|
||||||
|
|
||||||
|
f.setColorWrites(true, true, true, false);
|
||||||
mFontSB = GFX->createStateBlock(f);
|
mFontSB = GFX->createStateBlock(f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue