1 #include "ext_framebuffer_blit.h"
6 PFNGLBLITFRAMEBUFFERPROC glBlitFramebuffer = 0;
8 Extension::SupportLevel init_ext_framebuffer_blit()
10 if(is_version_at_least(3, 0) || is_supported("GL_ARB_framebuffer_object"))
12 glBlitFramebuffer = reinterpret_cast<PFNGLBLITFRAMEBUFFERPROC>(get_proc_address("glBlitFramebuffer"));
13 return Extension::CORE;
15 if(is_supported("GL_EXT_framebuffer_blit"))
17 glBlitFramebuffer = reinterpret_cast<PFNGLBLITFRAMEBUFFERPROC>(get_proc_address("glBlitFramebufferEXT"));
18 return Extension::EXTENSION;
20 return Extension::UNSUPPORTED;
23 Extension EXT_framebuffer_blit("GL_EXT_framebuffer_blit", init_ext_framebuffer_blit);