Skip to content

Commit

Permalink
Fix texture direction
Browse files Browse the repository at this point in the history
  • Loading branch information
tcdude committed Dec 2, 2023
1 parent cc0259c commit b03dcda
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/krink/graphics2/imagepainter.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ void kr_isp_draw_buffer(bool end) {
kinc_g4_set_texture(texunit, last_texture);
else if (last_type == KR_IMAGE_TEX_TYPE_RENDERTARGET)
kinc_g4_render_target_use_color_as_texture(last_texture, texunit);
kinc_g4_set_texture_addressing(texunit, KINC_G4_TEXTURE_ADDRESSING_CLAMP,
kinc_g4_set_texture_addressing(texunit, KINC_G4_TEXTURE_DIRECTION_U,
KINC_G4_TEXTURE_ADDRESSING_CLAMP);
kinc_g4_set_texture_mipmap_filter(texunit, bilinear_filter ? KINC_G4_MIPMAP_FILTER_LINEAR
: KINC_G4_MIPMAP_FILTER_NONE);
Expand Down
2 changes: 1 addition & 1 deletion Sources/krink/graphics2/textpainter.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ void kr_tsp_draw_buffer(bool end) {
kinc_g4_set_vertex_buffer(&vertex_buffer);
kinc_g4_set_index_buffer(&index_buffer);
kinc_g4_set_texture(texunit, last_texture);
kinc_g4_set_texture_addressing(texunit, KINC_G4_TEXTURE_ADDRESSING_CLAMP,
kinc_g4_set_texture_addressing(texunit, KINC_G4_TEXTURE_DIRECTION_U,
KINC_G4_TEXTURE_ADDRESSING_CLAMP);
kinc_g4_set_texture_mipmap_filter(texunit, KINC_G4_MIPMAP_FILTER_NONE);
kinc_g4_set_texture_minification_filter(
Expand Down

0 comments on commit b03dcda

Please sign in to comment.