Browse Source

Add context getter to RenderingDevice

Pedro J. Estébanez 1 year ago
parent
commit
ffa791c41f
1 changed files with 2 additions and 0 deletions
  1. 2 0
      servers/rendering/rendering_device.h

+ 2 - 0
servers/rendering/rendering_device.h

@@ -797,6 +797,8 @@ private:
 #endif
 
 public:
+	RenderingContextDriver *get_context_driver() const { return context; }
+
 	const RDD::Capabilities &get_device_capabilities() const { return driver->get_capabilities(); }
 
 	bool has_feature(const Features p_feature) const;