From cdb3f03e61d9d38a442913edc67319134aefe5a6 Mon Sep 17 00:00:00 2001 From: Relintai Date: Sat, 17 Feb 2024 19:04:57 +0100 Subject: [PATCH] Added optional GLES2_LOAD_EXT_NO_DLCFN_AVAILABLE define for the rasterizer storage. --- drivers/gles2/rasterizer_storage_gles2.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/gles2/rasterizer_storage_gles2.cpp b/drivers/gles2/rasterizer_storage_gles2.cpp index 8ece45218..ccc9e713b 100644 --- a/drivers/gles2/rasterizer_storage_gles2.cpp +++ b/drivers/gles2/rasterizer_storage_gles2.cpp @@ -100,6 +100,7 @@ GLuint RasterizerStorageGLES2::system_fbo = 0; //void *glRenderbufferStorageMultisampleAPPLE; //void *glResolveMultisampleFramebufferAPPLE; #define glRenderbufferStorageMultisample glRenderbufferStorageMultisampleAPPLE + #elif defined(ANDROID_ENABLED) #include // needed to load extensions @@ -110,6 +111,14 @@ PFNGLFRAMEBUFFERTEXTURE2DMULTISAMPLEEXTPROC glFramebufferTexture2DMultisampleEXT #define glRenderbufferStorageMultisample glRenderbufferStorageMultisampleEXT #define glFramebufferTexture2DMultisample glFramebufferTexture2DMultisampleEXT +#elif defined(GLES2_LOAD_EXT_NO_DLCFN_AVAILABLE) + +#include +PFNGLRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC glRenderbufferStorageMultisampleEXT; +PFNGLFRAMEBUFFERTEXTURE2DMULTISAMPLEEXTPROC glFramebufferTexture2DMultisampleEXT; +#define glRenderbufferStorageMultisample glRenderbufferStorageMultisampleEXT +#define glFramebufferTexture2DMultisample glFramebufferTexture2DMultisampleEXT + #elif defined(UWP_ENABLED) #include #define glRenderbufferStorageMultisample glRenderbufferStorageMultisampleANGLE