pview should use clamp wrap mode when loading image as model

This commit is contained in:
rdb 2016-02-03 13:37:23 +01:00
parent 623d81db6b
commit ef623aa0e2
1 changed files with 3 additions and 0 deletions

View File

@ -1283,6 +1283,9 @@ load_image_as_model(const Filename &filename) {
// Yes, it is an image file; make a texture out of it.
tex->set_minfilter(SamplerState::FT_linear_mipmap_linear);
tex->set_magfilter(SamplerState::FT_linear);
tex->set_wrap_u(SamplerState::WM_clamp);
tex->set_wrap_v(SamplerState::WM_clamp);
tex->set_wrap_w(SamplerState::WM_clamp);
// Ok, now make a polygon to show the texture.
bool has_alpha = true;