summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/render/bgfx/effect.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/osd/modules/render/bgfx/effect.h')
-rw-r--r--src/osd/modules/render/bgfx/effect.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/osd/modules/render/bgfx/effect.h b/src/osd/modules/render/bgfx/effect.h
index 02ef9fd4f54..ca1be77c73d 100644
--- a/src/osd/modules/render/bgfx/effect.h
+++ b/src/osd/modules/render/bgfx/effect.h
@@ -26,7 +26,8 @@ public:
~bgfx_effect();
void submit(int view, uint64_t blend = 0L);
- bgfx_uniform* uniform(std::string name);
+ bgfx_uniform *uniform(std::string name);
+ bool is_valid() { return m_program_handle.idx != bgfx::kInvalidHandle; }
private:
uint64_t m_state;