From 086b3ccfb73ef0fa0b45272ff00eededec622c9a Mon Sep 17 00:00:00 2001 From: Brad Parker Date: Sat, 25 May 2019 17:08:30 -0400 Subject: [PATCH] gl1: ignore alpha in core video, fixes XRGB8888 rendering in some cores --- gfx/drivers/gl1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/drivers/gl1.c b/gfx/drivers/gl1.c index bf01ad9da6..47ec7ddb7b 100644 --- a/gfx/drivers/gl1.c +++ b/gfx/drivers/gl1.c @@ -442,7 +442,7 @@ void gl1_gfx_set_viewport(gl1_t *gl1, static void draw_tex(gl1_t *gl1, int pot_width, int pot_height, int width, int height, GLuint tex, const void *frame_to_copy) { /* FIXME: For now, everything is uploaded as BGRA8888, I could not get 444 or 555 to work, and there is no 565 support in GL 1.1 either. */ - GLint internalFormat = GL_RGBA8; + GLint internalFormat = GL_RGB8; GLenum format = (gl1->supports_bgra ? GL_BGRA_EXT : GL_RGBA); GLenum type = GL_UNSIGNED_BYTE;