From 27feef1b23187930c74d829b7b237a1ed58bc9ae Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Fri, 1 Dec 2023 22:32:59 +0100 Subject: [PATCH] (Android) Fixed a font rendering issue on some devices --- es-core/src/renderers/RendererOpenGL.cpp | 4 ++-- es-core/src/renderers/RendererOpenGL.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/es-core/src/renderers/RendererOpenGL.cpp b/es-core/src/renderers/RendererOpenGL.cpp index 222343102..ed724fc72 100644 --- a/es-core/src/renderers/RendererOpenGL.cpp +++ b/es-core/src/renderers/RendererOpenGL.cpp @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT // -// EmulationStation Desktop Edition +// ES-DE // RendererOpenGL.cpp // // OpenGL / OpenGL ES renderering functions. @@ -112,7 +112,7 @@ GLenum RendererOpenGL::convertTextureType(const TextureType type) #else case TextureType::BGRA: { return GL_BGRA; } break; #endif -#if defined(__EMSCRIPTEN__) +#if defined(__EMSCRIPTEN__) || defined(__ANDROID__) case TextureType::RED: { return GL_LUMINANCE; } break; #else case TextureType::RED: { return GL_RED; } break; diff --git a/es-core/src/renderers/RendererOpenGL.h b/es-core/src/renderers/RendererOpenGL.h index 416b4d89d..ad8bf44a4 100644 --- a/es-core/src/renderers/RendererOpenGL.h +++ b/es-core/src/renderers/RendererOpenGL.h @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT // -// EmulationStation Desktop Edition +// ES-DE // RendererOpenGL.h // // OpenGL / OpenGL ES renderering functions.