From 57d7bc2f536048142ff38b948ccf2ee0bba00f97 Mon Sep 17 00:00:00 2001 From: rdb Date: Tue, 26 Oct 2021 14:00:25 +0200 Subject: [PATCH] display: document make_texture_buffer() behavior when size is 0 Fixes panda3d/panda3d-docs#100 --- panda/src/display/graphicsOutput.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/panda/src/display/graphicsOutput.cxx b/panda/src/display/graphicsOutput.cxx index 1f97ade9e7..58d4099a45 100644 --- a/panda/src/display/graphicsOutput.cxx +++ b/panda/src/display/graphicsOutput.cxx @@ -834,6 +834,9 @@ get_active_display_region(int n) const { * which will be a texture suitable for applying to geometry within the scene * rendered into this window. * + * If you pass zero as the buffer size, the buffer will have the same size as + * the host window, and will automatically be resized when the host window is. + * * If tex is not NULL, it is the texture that will be set up for rendering * into; otherwise, a new Texture object will be created. In either case, the * target texture can be retrieved from the return value with