mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-03 01:19:38 +01:00
Ported: More low priority redraw request cases
Some more cases of textures etc causing continuous updates in vital updates only mode are fixed.
- lawnjelly
f8df04ed50
This commit is contained in:
parent
52d0f7eef9
commit
06036225f4
@ -196,7 +196,7 @@ RasterizerStorageGLES2::Texture *RasterizerCanvasBaseGLES2::_bind_canvas_texture
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
if (texture->redraw_if_visible) {
|
if (texture->redraw_if_visible) {
|
||||||
VisualServerRaster::redraw_request();
|
VisualServerRaster::redraw_request(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
texture = texture->get_ptr();
|
texture = texture->get_ptr();
|
||||||
@ -236,7 +236,7 @@ RasterizerStorageGLES2::Texture *RasterizerCanvasBaseGLES2::_bind_canvas_texture
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
if (normal_map->redraw_if_visible) { //check before proxy, because this is usually used with proxies
|
if (normal_map->redraw_if_visible) { //check before proxy, because this is usually used with proxies
|
||||||
VisualServerRaster::redraw_request();
|
VisualServerRaster::redraw_request(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
normal_map = normal_map->get_ptr();
|
normal_map = normal_map->get_ptr();
|
||||||
|
@ -1693,7 +1693,7 @@ void RasterizerCanvasGLES2::_legacy_canvas_render_item(Item *p_ci, RenderItemSta
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (t->redraw_if_visible) {
|
if (t->redraw_if_visible) {
|
||||||
VisualServerRaster::redraw_request();
|
VisualServerRaster::redraw_request(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
t = t->get_ptr();
|
t = t->get_ptr();
|
||||||
@ -2055,7 +2055,7 @@ void RasterizerCanvasGLES2::render_joined_item(const BItemJoined &p_bij, RenderI
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (t->redraw_if_visible) {
|
if (t->redraw_if_visible) {
|
||||||
VisualServerRaster::redraw_request();
|
VisualServerRaster::redraw_request(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
t = t->get_ptr();
|
t = t->get_ptr();
|
||||||
|
@ -1407,7 +1407,7 @@ bool RasterizerSceneGLES2::_setup_material(RasterizerStorageGLES2::Material *p_m
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (t->redraw_if_visible) { //must check before proxy because this is often used with proxies
|
if (t->redraw_if_visible) { //must check before proxy because this is often used with proxies
|
||||||
VisualServerRaster::redraw_request();
|
VisualServerRaster::redraw_request(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
t = t->get_ptr();
|
t = t->get_ptr();
|
||||||
@ -1784,7 +1784,7 @@ void RasterizerSceneGLES2::_render_geometry(RenderList::Element *p_element) {
|
|||||||
RasterizerStorageGLES2::Texture *t = storage->texture_owner.get(c.texture);
|
RasterizerStorageGLES2::Texture *t = storage->texture_owner.get(c.texture);
|
||||||
|
|
||||||
if (t->redraw_if_visible) {
|
if (t->redraw_if_visible) {
|
||||||
VisualServerRaster::redraw_request();
|
VisualServerRaster::redraw_request(false);
|
||||||
}
|
}
|
||||||
t = t->get_ptr();
|
t = t->get_ptr();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user