1 #include "ext_framebuffer_multisample.h"
6 PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC glRenderbufferStorageMultisample = 0;
8 Extension::SupportLevel init_ext_framebuffer_multisample()
10 if(is_version_at_least(3, 0) || is_supported("GL_ARB_framebuffer_object"))
12 glRenderbufferStorageMultisample = reinterpret_cast<PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC>(get_proc_address("glRenderbufferStorageMultisample"));
13 return Extension::CORE;
15 if(is_supported("GL_EXT_framebuffer_multisample"))
17 glRenderbufferStorageMultisample = reinterpret_cast<PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC>(get_proc_address("glRenderbufferStorageMultisampleEXT"));
18 return Extension::EXTENSION;
20 return Extension::UNSUPPORTED;
23 Extension EXT_framebuffer_multisample("GL_EXT_framebuffer_multisample", init_ext_framebuffer_multisample);