[FIRE-33200] Fix ShadowRes breaks shadows (update tagging)
Original fix by William Weaver (paperwork) closes FIRE-33200 also: minor edit to remove stray unicode in commentmaster
parent
95dcbfb8c1
commit
501100acef
|
|
@ -789,7 +789,7 @@ void LLPipeline::requestResizeShadowTexture()
|
|||
|
||||
void LLPipeline::resizeShadowTexture()
|
||||
{
|
||||
// <FS:Beq> guard against zero size render target
|
||||
// <FS:Beq> [FIRE-33200] changing shadowres requires reload - original fix by William Weaver (paperwork)
|
||||
if(mRT->width == 0 || mRT->height == 0)
|
||||
{
|
||||
return;
|
||||
|
|
@ -8088,7 +8088,7 @@ bool LLPipeline::renderSnapshotFrame(LLRenderTarget* src, LLRenderTarget* dst)
|
|||
{
|
||||
float frame_width = w;
|
||||
float frame_height = frame_width / snapshot_aspect;
|
||||
// Centre this box in [0..1]<EFBFBD>[0..1]
|
||||
// Centre this box in [0..1]x[0..1]
|
||||
float y_offset = 0.5f * (h - frame_height);
|
||||
left = 0.f;
|
||||
top = y_offset / h;
|
||||
|
|
@ -8099,7 +8099,7 @@ bool LLPipeline::renderSnapshotFrame(LLRenderTarget* src, LLRenderTarget* dst)
|
|||
{
|
||||
float frame_height = h;
|
||||
float frame_width = h * snapshot_aspect;
|
||||
// Centre this box in [0..1]<EFBFBD>[0..1]
|
||||
// Centre this box in [0..1]x[0..1]
|
||||
float x_offset = 0.5f * (w - frame_width);
|
||||
left = x_offset / w;
|
||||
top = 0.f;
|
||||
|
|
|
|||
Loading…
Reference in New Issue