Skip to content

Commit

Permalink
clamp affine texture to border
Browse files Browse the repository at this point in the history
  • Loading branch information
skyfloogle committed Nov 12, 2023
1 parent d9cc906 commit 4a41cf0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/3ds/video.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ bool V810_DSP_Init()
for (int i = 0; i < AFFINE_CACHE_SIZE; i++)
{
C3D_TexInitWithParams(&tileMapCache[i], NULL, params);
C3D_TexSetWrap(&tileMapCache[i], GPU_CLAMP_TO_BORDER, GPU_CLAMP_TO_BORDER);
tileMapCacheTarget[i] = C3D_RenderTargetCreateFromTex(&tileMapCache[i], GPU_TEX_2D, 0, GPU_RB_DEPTH16);
C3D_RenderTargetClear(tileMapCacheTarget[i], C3D_CLEAR_ALL, 0, 0);
}
Expand Down

0 comments on commit 4a41cf0

Please sign in to comment.