Группа :: Эмуляторы
Пакет: supermodel
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: Fix-texture2DLod-missing-error-on-Linux_MESA.patch
Скачать
Скачать
From c66309f0a0e40bf39358ae4d1b6dad238724a041 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fernando=20Casas=20Sch=C3=B6ssow?=
<casasfernando@outlook.com>
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)