Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2022-11-13 18:02:57 +0300
committerClément Foucault <foucault.clem@gmail.com>2022-11-13 18:02:57 +0300
commitf1466ce9a8e64606d0709b554937733dc3fb6ad9 (patch)
tree0924f4bd868fe55e537f0dc35da258241fa48803
parent0e4bdd428ca2a2f0b8c878aa9a5c3ca22d1aa140 (diff)
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 **`.
-rw-r--r--source/blender/draw/intern/DRW_gpu_wrapper.hh5
1 files changed, 5 insertions, 0 deletions
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.
*/