From f1466ce9a8e64606d0709b554937733dc3fb6ad9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Foucault?= Date: Sun, 13 Nov 2022 16:02:57 +0100 Subject: DRW: Wrappers: Allow taking reference of the framebuffer object This is in order to make it work with the new `framebuffer_set` command which requires a `GPUFrameBuffer **`. --- source/blender/draw/intern/DRW_gpu_wrapper.hh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source') diff --git a/source/blender/draw/intern/DRW_gpu_wrapper.hh b/source/blender/draw/intern/DRW_gpu_wrapper.hh index 6aca05f124f..bf701dcf2cd 100644 --- a/source/blender/draw/intern/DRW_gpu_wrapper.hh +++ b/source/blender/draw/intern/DRW_gpu_wrapper.hh @@ -1029,6 +1029,11 @@ class Framebuffer : NonCopyable { return fb_; } + GPUFrameBuffer **operator&() + { + return &fb_; + } + /** * Swap the content of the two framebuffer. */ -- cgit v1.2.3