mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
fix compile error
This commit is contained in:
parent
52e79afd4a
commit
579f4c7f47
@ -171,7 +171,8 @@ bind_texture_to_pbuffer() {
|
|||||||
_pbuffer_bound->release(wglgsg->get_prepared_objects());
|
_pbuffer_bound->release(wglgsg->get_prepared_objects());
|
||||||
_pbuffer_bound = 0;
|
_pbuffer_bound = 0;
|
||||||
}
|
}
|
||||||
tex->set_size_padded(_x_size, _y_size);
|
tex->set_size_padded(get_x_size(), get_y_size());
|
||||||
|
|
||||||
if (tex->get_match_framebuffer_format()) {
|
if (tex->get_match_framebuffer_format()) {
|
||||||
if (_fb_properties.get_alpha_bits()) {
|
if (_fb_properties.get_alpha_bits()) {
|
||||||
tex->set_format(Texture::F_rgba);
|
tex->set_format(Texture::F_rgba);
|
||||||
@ -454,14 +455,13 @@ rebuild_bitplanes() {
|
|||||||
// for currently-applicable textures.
|
// for currently-applicable textures.
|
||||||
|
|
||||||
if ((_host != 0)&&(_creation_flags & GraphicsPipe::BF_size_track_host)) {
|
if ((_host != 0)&&(_creation_flags & GraphicsPipe::BF_size_track_host)) {
|
||||||
if ((_host->get_x_size() != _x_size)||
|
if (_host->get_size() != _size) {
|
||||||
(_host->get_y_size() != _y_size)) {
|
|
||||||
set_size_and_recalc(_host->get_x_size(),
|
set_size_and_recalc(_host->get_x_size(),
|
||||||
_host->get_y_size());
|
_host->get_y_size());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
int desired_x = _x_size;
|
int desired_x = get_x_size();
|
||||||
int desired_y = _y_size;
|
int desired_y = get_y_size();
|
||||||
if ((bindtexture != 0)&&(Texture::get_textures_power_2() != ATS_none)) {
|
if ((bindtexture != 0)&&(Texture::get_textures_power_2() != ATS_none)) {
|
||||||
desired_x = Texture::up_to_power_2(desired_x);
|
desired_x = Texture::up_to_power_2(desired_x);
|
||||||
desired_y = Texture::up_to_power_2(desired_y);
|
desired_y = Texture::up_to_power_2(desired_y);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user