mirror of
https://github.com/godotengine/godot-angle-static.git
synced 2026-01-07 06:09:57 +03:00
Load the blit framebuffer extension entry points.
Change-Id: I654f944aea25661d3fb1e2381b93780771300f32 Reviewed-on: https://chromium-review.googlesource.com/269144 Reviewed-by: Kenneth Russell <kbr@chromium.org> Reviewed-by: Brandon Jones <bajones@chromium.org> Tested-by: Geoff Lang <geofflang@chromium.org>
This commit is contained in:
@@ -853,6 +853,8 @@ void FunctionsGL::initialize()
|
||||
AssignGLEntryPoint(loadProcAddress("glTexSubImage2D"), &texSubImage2D);
|
||||
|
||||
// Extensions
|
||||
AssignGLExtensionEntryPoint(extensions, "GL_EXT_framebuffer_blit", loadProcAddress("glBlitFramebufferEXT"), &blitFramebuffer);
|
||||
|
||||
AssignGLExtensionEntryPoint(extensions, "GL_KHR_debug", loadProcAddress("glDebugMessageControl"), &debugMessageControl);
|
||||
AssignGLExtensionEntryPoint(extensions, "GL_KHR_debug", loadProcAddress("glDebugMessageInsert"), &debugMessageInsert);
|
||||
AssignGLExtensionEntryPoint(extensions, "GL_KHR_debug", loadProcAddress("glDebugMessageCallback"), &debugMessageCallback);
|
||||
|
||||
@@ -155,6 +155,7 @@ void GenerateCaps(const FunctionsGL *functions, gl::Caps *caps, gl::TextureCapsM
|
||||
extensions->textureNPOT = true;
|
||||
extensions->textureStorage = true;
|
||||
extensions->fboRenderMipmap = true;
|
||||
extensions->framebufferBlit = (functions->blitFramebuffer != nullptr);
|
||||
extensions->framebufferMultisample = caps->maxSamples > 0;
|
||||
extensions->fence = std::find(functions->extensions.begin(), functions->extensions.end(), "GL_NV_fence") != functions->extensions.end();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user