diff --git a/libs/gfx/include/psemek/gfx/gl.hpp b/libs/gfx/include/psemek/gfx/gl.hpp index 94e5ae6b..8db56b06 100644 --- a/libs/gfx/include/psemek/gfx/gl.hpp +++ b/libs/gfx/include/psemek/gfx/gl.hpp @@ -1866,6 +1866,7 @@ namespace gl int major_version(); int minor_version(); + bool has_extension(const char * name); bool ext_ARB_compute_shader(); bool ext_ARB_shader_image_load_store(); bool ext_ARB_texture_filter_anisotropic(); diff --git a/libs/gfx/source/gl.cpp b/libs/gfx/source/gl.cpp index 6901e13e..e922c12b 100644 --- a/libs/gfx/source/gl.cpp +++ b/libs/gfx/source/gl.cpp @@ -1270,6 +1270,8 @@ namespace gl int minor_version(){ return 3; } + bool has_extension(const char * name){ return extensions.contains(name); } + bool ext_ARB_compute_shader(){ return ext_GL_ARB_compute_shader_loaded; } bool ext_ARB_shader_image_load_store(){ return ext_GL_ARB_shader_image_load_store_loaded; } bool ext_ARB_texture_filter_anisotropic(){ return ext_GL_ARB_texture_filter_anisotropic_loaded; }