mirror of
https://github.com/libretro/RetroArch
synced 2025-02-07 03:40:24 +00:00
gl1: adapt C89
This commit is contained in:
parent
0212567d75
commit
897488862e
@ -571,8 +571,9 @@ static void draw_tex(gl1_t *gl1, int pot_width, int pot_height, int width, int h
|
||||
if (!gl1->supports_bgra) {
|
||||
uint8_t* frame_rgba = malloc(pot_width * pot_height * 4);
|
||||
uint8_t* frame_bgra = frame_to_copy;
|
||||
for (int y = 0; y < pot_height; y++) {
|
||||
for (int x = 0; x < pot_width; x++) {
|
||||
int x, y;
|
||||
for (y = 0; y < pot_height; y++) {
|
||||
for (x = 0; x < pot_width; x++) {
|
||||
int index = (y * pot_width + x) * 4;
|
||||
frame_rgba[index + 2] = frame_bgra[index + 0];
|
||||
frame_rgba[index + 1] = frame_bgra[index + 1];
|
||||
|
Loading…
x
Reference in New Issue
Block a user