Skip to content

Commit

Permalink
tr_image: deduplicate some code
Browse files Browse the repository at this point in the history
  • Loading branch information
illwieckz committed May 29, 2024
1 parent c432ce2 commit bdabff4
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/engine/renderer/tr_image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2489,18 +2489,14 @@ static void R_CreateDepthRenderImage()

tr.depthtile2RenderImage = R_CreateImage( "_depthtile2Render", nullptr, w, h, 1, imageParams );

imageParams.bits = IF_NOPICMIP;

if ( glConfig2.textureIntegerAvailable && r_highPrecisionRendering.Get() )
{
imageParams.bits = IF_NOPICMIP | IF_RGBA32UI;

tr.lighttileRenderImage = R_Create3DImage( "_lighttileRender", nullptr, w, h, 4, imageParams );
imageParams.bits |= IF_RGBA32UI;
}
else
{
imageParams.bits = IF_NOPICMIP;

tr.lighttileRenderImage = R_Create3DImage( "_lighttileRender", nullptr, w, h, 4, imageParams );
}
tr.lighttileRenderImage = R_Create3DImage( "_lighttileRender", nullptr, w, h, 4, imageParams );
}
}

Expand Down

0 comments on commit bdabff4

Please sign in to comment.