glsl framebuffer_fetch extension check at runtime

This commit is contained in:
2019-01-30 15:43:45 +01:00
parent 489036a40c
commit c55ed36f2c
5 changed files with 99 additions and 50 deletions

View File

@@ -84,6 +84,7 @@ class ShaderManager
static std::map<kShader, Shader> m_shaders;
static Shader* m_current;
public:
static bool ext_framebuffer_fetch;
static bool create(kShader id, const char* vertex, const char* fragment);
static void use(kShader id);
static void use(const char* name);