mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
render textures should clamp by default
This commit is contained in:
parent
5832df65ce
commit
6a0476ebcb
@ -45,6 +45,8 @@ GraphicsBuffer(GraphicsPipe *pipe, GraphicsStateGuardian *gsg,
|
|||||||
if (want_texture) {
|
if (want_texture) {
|
||||||
_texture = new Texture();
|
_texture = new Texture();
|
||||||
_texture->set_name(_name);
|
_texture->set_name(_name);
|
||||||
|
_texture->set_wrapu(Texture::WM_clamp);
|
||||||
|
_texture->set_wrapv(Texture::WM_clamp);
|
||||||
_copy_texture = true;
|
_copy_texture = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -252,6 +252,8 @@ make_buffer(GraphicsStateGuardian *gsg, const string &name,
|
|||||||
if (want_texture) {
|
if (want_texture) {
|
||||||
window->_texture = new Texture();
|
window->_texture = new Texture();
|
||||||
window->_texture->set_name(name);
|
window->_texture->set_name(name);
|
||||||
|
window->_texture->set_wrapu(Texture::WM_clamp);
|
||||||
|
window->_texture->set_wrapv(Texture::WM_clamp);
|
||||||
window->_copy_texture = true;
|
window->_copy_texture = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -46,6 +46,8 @@ ParasiteBuffer(GraphicsOutput *host, const string &name,
|
|||||||
|
|
||||||
_texture = new Texture();
|
_texture = new Texture();
|
||||||
_texture->set_name(_name);
|
_texture->set_name(_name);
|
||||||
|
_texture->set_wrapu(Texture::WM_clamp);
|
||||||
|
_texture->set_wrapv(Texture::WM_clamp);
|
||||||
_copy_texture = true;
|
_copy_texture = true;
|
||||||
|
|
||||||
_x_size = x_size;
|
_x_size = x_size;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user