mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
robustify layer-ordering interface
This commit is contained in:
parent
f4a0d85d02
commit
569758a0f6
@ -211,7 +211,7 @@ get_render_2d() {
|
||||
PT(GraphicsChannel) channel = _window->get_channel(0);
|
||||
|
||||
// Make a layer on the channel to hold our display region.
|
||||
PT(GraphicsLayer) layer = channel->make_layer();
|
||||
PT(GraphicsLayer) layer = channel->make_layer(10);
|
||||
|
||||
// And create a display region that covers the entire window.
|
||||
PT(DisplayRegion) dr = layer->make_display_region();
|
||||
|
Loading…
x
Reference in New Issue
Block a user