GP: Create Framebuffer textures only if needed
authorAntonioya <blendergit@gmail.com>
Thu, 13 Dec 2018 10:51:17 +0000 (11:51 +0100)
committerAntonioya <blendergit@gmail.com>
Thu, 13 Dec 2018 10:51:41 +0000 (11:51 +0100)
commit6c39ea27c8c9b91c84ee8b3e870f9c7a3ba8d33b
tree30c93d0a9377abd9372c36318a2c87f5805a2ced
parent715ab529f171234231c06a63d6c0927006b7379d
GP: Create Framebuffer textures only if needed

Now, if there aren't grease pencil objects, the textures and framebuffers are not created. This unload GPU Memory when not using GP.
source/blender/draw/engines/gpencil/gpencil_engine.c
source/blender/draw/engines/gpencil/gpencil_engine.h