mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-11 06:15:05 +00:00
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:
parent
50ac6893bf
commit
ef76e353d3
2 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue