David Rose 21 роки тому
батько
коміт
53f446569e
1 змінених файлів з 2 додано та 0 видалено
  1. 2 0
      panda/src/display/graphicsOutput.cxx

+ 2 - 0
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