From f806064e7e30cf3b52c06f6304acad97a9614dd3 Mon Sep 17 00:00:00 2001 From: Ivan Epifanov Date: Mon, 19 Jul 2021 13:12:10 +0300 Subject: [PATCH] Remove 'support' for rgb/bgr textures, that was causing issues with them --- src/render/vitagxm/SDL_render_vita_gxm.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/render/vitagxm/SDL_render_vita_gxm.c b/src/render/vitagxm/SDL_render_vita_gxm.c index 02a439b80..cb8f37772 100644 --- a/src/render/vitagxm/SDL_render_vita_gxm.c +++ b/src/render/vitagxm/SDL_render_vita_gxm.c @@ -115,14 +115,12 @@ SDL_RenderDriver VITA_GXM_RenderDriver = { .info = { .name = "VITA gxm", .flags = SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSYNC | SDL_RENDERER_TARGETTEXTURE, - .num_texture_formats = 6, + .num_texture_formats = 4, .texture_formats = { [0] = SDL_PIXELFORMAT_ABGR8888, [1] = SDL_PIXELFORMAT_ARGB8888, - [2] = SDL_PIXELFORMAT_RGB888, - [3] = SDL_PIXELFORMAT_BGR888, - [4] = SDL_PIXELFORMAT_RGB565, - [5] = SDL_PIXELFORMAT_BGR565 + [2] = SDL_PIXELFORMAT_RGB565, + [3] = SDL_PIXELFORMAT_BGR565 }, .max_texture_width = 4096, .max_texture_height = 4096,