From 412e9232d7ce72cbb3cb00f338c26c180e13722c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20Casas=20Sch=C3=B6ssow?= Date: Tue, 4 Oct 2022 08:23:11 +0200 Subject: [PATCH] Fix new 3D engine texture2DLod function missing error on Linux/MESA. MESA requires needed extensions to be explicitly declared in code otherwise it will not enable them. --- Src/Graphics/New3D/R3DShaderTriangles.h | 1 + 1 file changed, 1 insertion(+) diff --git a/Src/Graphics/New3D/R3DShaderTriangles.h b/Src/Graphics/New3D/R3DShaderTriangles.h index 01c6b88..574782b 100644 --- a/Src/Graphics/New3D/R3DShaderTriangles.h +++ b/Src/Graphics/New3D/R3DShaderTriangles.h @@ -62,6 +62,7 @@ void main(void) static const char *fragmentShaderR3D = R"glsl( #version 120 +#extension GL_ARB_shader_texture_lod : require uniform sampler2D tex1; // base tex uniform sampler2D tex2; // micro tex (optional)