From 1c80388a737b306ad07669b83c49801e4582a461 Mon Sep 17 00:00:00 2001 From: Dalai Felinto Date: Fri, 12 Apr 2013 01:52:30 +0000 Subject: bge fix: framing mode "Expanded" not updated when resizing blenderplayer now, with a 'resize' routine for the engine we can/should also recreate some buffers that are created only at init time (e.g., 2d filters, dome fbos, ...). This bug was always present in Blender (since 2.49 at least). Bugfix supported by NF-UBC Nereus Program as part of the development of OceanViz/NereusViz --- source/gameengine/Ketsji/KX_KetsjiEngine.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source/gameengine/Ketsji/KX_KetsjiEngine.h') diff --git a/source/gameengine/Ketsji/KX_KetsjiEngine.h b/source/gameengine/Ketsji/KX_KetsjiEngine.h index fdfe0551d18..0d7e41d7568 100644 --- a/source/gameengine/Ketsji/KX_KetsjiEngine.h +++ b/source/gameengine/Ketsji/KX_KetsjiEngine.h @@ -420,6 +420,13 @@ public: GlobalSettings* GetGlobalSettings(void); void SetGlobalSettings(GlobalSettings* gs); + /** + * Invalidate all the camera matrices and handle other + * needed changes when resized. + * It's only called from Blenderplayer. + */ + void Resize(); + protected: /** * Processes all scheduled scene activity. -- cgit v1.2.3