From ef623aa0e282c4c51e4ea5271bcc96735ee51e97 Mon Sep 17 00:00:00 2001 From: rdb Date: Wed, 3 Feb 2016 13:37:23 +0100 Subject: [PATCH] pview should use clamp wrap mode when loading image as model --- panda/src/framework/windowFramework.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/panda/src/framework/windowFramework.cxx b/panda/src/framework/windowFramework.cxx index 85d78be52b..9f4ea1eecb 100644 --- a/panda/src/framework/windowFramework.cxx +++ b/panda/src/framework/windowFramework.cxx @@ -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;