Skip to content

Commit

Permalink
tr_image: add some fixme comment for the future self debugging missin…
Browse files Browse the repository at this point in the history
…g float support
  • Loading branch information
illwieckz committed May 30, 2024
1 parent 303e06f commit 05a69b6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/engine/renderer/tr_image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2437,6 +2437,8 @@ static void R_CreateDepthRenderImage()
imageParams_t imageParams = {};
imageParams.filterType = filterType_t::FT_NEAREST;
imageParams.wrapType = wrapTypeEnum_t::WT_CLAMP;

// FIXME: We should not run this code if glConfig2.textureFloatAvailable is false.
imageParams.bits = IF_NOPICMIP | IF_RGBA32F;

tr.dlightImage = R_CreateImage("_dlightImage", nullptr, w, h, 4, imageParams );
Expand Down Expand Up @@ -2466,10 +2468,12 @@ static void R_CreateDepthRenderImage()
int h = (height + TILE_SIZE_STEP1 - 1) >> TILE_SHIFT_STEP1;

imageParams_t imageParams = {};
imageParams.bits = IF_NOPICMIP | IF_RGBA32F;
imageParams.filterType = filterType_t::FT_NEAREST;
imageParams.wrapType = wrapTypeEnum_t::WT_ONE_CLAMP;

// FIXME: We should not run this code if glConfig2.textureFloatAvailable is false.
imageParams.bits = IF_NOPICMIP | IF_RGBA32F;

tr.depthtile1RenderImage = R_CreateImage( "_depthtile1Render", nullptr, w, h, 1, imageParams );

w = (width + TILE_SIZE - 1) >> TILE_SHIFT;
Expand Down

0 comments on commit 05a69b6

Please sign in to comment.