gs-effect-pass/technique: Change to protected inheritance

Prevents the use of get() and reset() where not actually needed and forces us to actually implement all of the methods needed to interface with the object, leading to cleaner and safer code.
This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2019-12-15 10:37:41 +01:00
parent 50ac6893bf
commit ef76e353d3
2 changed files with 2 additions and 2 deletions

View file

@ -25,7 +25,7 @@
#include <graphics/graphics.h>
namespace gs {
class effect_pass : public std::shared_ptr<gs_epass_t> {
class effect_pass : protected std::shared_ptr<gs_epass_t> {
std::shared_ptr<gs_technique_t>* _parent;
public:

View file

@ -26,7 +26,7 @@
#include <graphics/graphics.h>
namespace gs {
class effect_technique : public std::shared_ptr<gs_technique_t> {
class effect_technique : protected std::shared_ptr<gs_technique_t> {
std::shared_ptr<gs_effect_t>* _parent;
public: