From 665c70281b40626bb2532ff41d968788379e8a23 Mon Sep 17 00:00:00 2001 From: TLeaves <664570530@qq.com> Date: Fri, 9 Aug 2024 10:08:30 +0800 Subject: [PATCH] [Fix] fix osgText frag texture2DLod extension error. For SDF Text. --- src/osgText/shaders/osgText_Text_frag.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/osgText/shaders/osgText_Text_frag.cpp b/src/osgText/shaders/osgText_Text_frag.cpp index 74af76369e3..94938741c85 100644 --- a/src/osgText/shaders/osgText_Text_frag.cpp +++ b/src/osgText/shaders/osgText_Text_frag.cpp @@ -38,6 +38,7 @@ char osgText_Text_frag[] = "$OSG_GLSL_VERSION\n" " #define TEXTURELOD texture2DLod\n" " #endif\n" " #else\n" + " #extension GL_ARB_shader_texture_lod : enable\n" " #define TEXTURELOD texture2DLod\n" " #endif\n" "#endif\n"