fix: Cambiar shaders ES de 3.1 a 3.0 para Raspberry Pi

RPi 5 solo soporta OpenGL ES 3.0, no 3.1.
Cambiada versión de #version 310 es a #version 300 es
This commit is contained in:
2025-10-02 21:22:14 +02:00
parent 7187412a45
commit dcc223d287
4 changed files with 6 additions and 6 deletions

View File

@@ -78,7 +78,7 @@ SOUND|${PREFIX}/data/sound/walk.wav
DATA|${PREFIX}/data/shaders/crtpi_vertex.glsl
DATA|${PREFIX}/data/shaders/crtpi_fragment.glsl
# Shaders OpenGL ES 3.1 (Raspberry Pi) - opcionales
# Shaders OpenGL ES 3.0 (Raspberry Pi) - opcionales
DATA|${PREFIX}/data/shaders/crtpi_vertex_es.glsl|optional
DATA|${PREFIX}/data/shaders/crtpi_fragment_es.glsl|optional
# Texturas - Balloons

View File

@@ -1,6 +1,6 @@
#version 310 es
#version 300 es
// OpenGL ES 3.1 - Compatible con Raspberry Pi 5
// OpenGL ES 3.0 - Compatible con Raspberry Pi 5
precision highp float;
// Configuración

View File

@@ -1,6 +1,6 @@
#version 310 es
#version 300 es
// OpenGL ES 3.1 - Compatible con Raspberry Pi 5
// OpenGL ES 3.0 - Compatible con Raspberry Pi 5
precision highp float;
// Configuración

View File

@@ -242,7 +242,7 @@ void Screen::loadShaders() {
"Usando shaders OpenGL Desktop 3.3");
} else {
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION,
"Usando shaders OpenGL ES 3.1 (Raspberry Pi)");
"Usando shaders OpenGL ES 3.0 (Raspberry Pi)");
}
if (!data.empty()) {