mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
gobj: Fix Texture render_to_texture flag garbage after CData copy
This commit is contained in:
parent
bdb55c480b
commit
602bd3e023
@ -26,6 +26,7 @@ INLINE PT(Texture) Texture::
|
|||||||
make_copy() const {
|
make_copy() const {
|
||||||
PT(Texture) tex = make_copy_impl();
|
PT(Texture) tex = make_copy_impl();
|
||||||
CDWriter cdata_tex(tex->_cycler, true);
|
CDWriter cdata_tex(tex->_cycler, true);
|
||||||
|
cdata_tex->_render_to_texture = false;
|
||||||
cdata_tex->inc_properties_modified();
|
cdata_tex->inc_properties_modified();
|
||||||
cdata_tex->inc_image_modified();
|
cdata_tex->inc_image_modified();
|
||||||
cdata_tex->inc_simple_image_modified();
|
cdata_tex->inc_simple_image_modified();
|
||||||
|
@ -10710,6 +10710,7 @@ CData() {
|
|||||||
Texture::CData::
|
Texture::CData::
|
||||||
CData(const Texture::CData ©) {
|
CData(const Texture::CData ©) {
|
||||||
_num_mipmap_levels_read = 0;
|
_num_mipmap_levels_read = 0;
|
||||||
|
_render_to_texture = copy._render_to_texture;
|
||||||
|
|
||||||
do_assign(©);
|
do_assign(©);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user