mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 13:14:04 +00:00
video_lima: fix some swizzling in the fragment shader
Thanks to AreaScout for testing this!
This commit is contained in:
parent
9226c3c783
commit
55fc57b846
@ -355,7 +355,7 @@ static int create_programs(limare_data_t *pdata) {
|
|||||||
char tmpbufm[1024]; /* temp buffer for main function */
|
char tmpbufm[1024]; /* temp buffer for main function */
|
||||||
char tmpbuf[1024]; /* temp buffer for whole program */
|
char tmpbuf[1024]; /* temp buffer for whole program */
|
||||||
|
|
||||||
const char* swz = (pdata->upload_bpp == 4) ? ".rgb" : ".rgb"; /* TODO / XRGB8888 */
|
const char* swz = (pdata->upload_bpp == 4) ? ".bgr" : ".rgb";
|
||||||
|
|
||||||
/* Create shader program for regular operation first. */
|
/* Create shader program for regular operation first. */
|
||||||
pdata->program = limare_program_new(pdata->state);
|
pdata->program = limare_program_new(pdata->state);
|
||||||
@ -385,7 +385,7 @@ static int create_programs(limare_data_t *pdata) {
|
|||||||
pdata->program_rgui_rgba32 = limare_program_new(pdata->state);
|
pdata->program_rgui_rgba32 = limare_program_new(pdata->state);
|
||||||
if (pdata->program_rgui_rgba32 < 0) goto fail;
|
if (pdata->program_rgui_rgba32 < 0) goto fail;
|
||||||
|
|
||||||
snprintf(tmpbufm, 1024, fshader_rgui_main_src, ".rgba");
|
snprintf(tmpbufm, 1024, fshader_rgui_main_src, ".abgr");
|
||||||
strncpy(tmpbuf, fshader_rgui_header_src, 1024);
|
strncpy(tmpbuf, fshader_rgui_header_src, 1024);
|
||||||
strcat(tmpbuf, tmpbufm);
|
strcat(tmpbuf, tmpbufm);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user