From 53f446569ec4420679c969fa1d4f873a3db66e9d Mon Sep 17 00:00:00 2001 From: David Rose Date: Sat, 5 Mar 2005 01:14:25 +0000 Subject: [PATCH] cube maps should clamp --- panda/src/display/graphicsOutput.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/panda/src/display/graphicsOutput.cxx b/panda/src/display/graphicsOutput.cxx index 4b078a1b7a..3f4efddf26 100644 --- a/panda/src/display/graphicsOutput.cxx +++ b/panda/src/display/graphicsOutput.cxx @@ -629,6 +629,8 @@ make_cube_map(const string &name, int size, bool to_ram, PT(Texture) tex = new Texture(name); tex->setup_cube_map(); + tex->set_wrap_u(Texture::WM_clamp); + tex->set_wrap_v(Texture::WM_clamp); GraphicsOutput *buffer = make_texture_buffer(name, size, size, tex, to_ram); // We don't need to clear the overall buffer; instead, we'll clear