mirror of
https://github.com/libretro/RetroArch
synced 2025-02-23 06:41:04 +00:00
(Lakka) Uniquely name vertex and tex_coord variables
This commit is contained in:
parent
6ebcbc7f7c
commit
064fbfb35c
@ -44,14 +44,14 @@
|
|||||||
#include "lakka.h"
|
#include "lakka.h"
|
||||||
#include "tween.h"
|
#include "tween.h"
|
||||||
|
|
||||||
static const GLfloat vertex[] = {
|
static const GLfloat lakka_vertex[] = {
|
||||||
0, 0,
|
0, 0,
|
||||||
1, 0,
|
1, 0,
|
||||||
0, 1,
|
0, 1,
|
||||||
1, 1,
|
1, 1,
|
||||||
};
|
};
|
||||||
|
|
||||||
static const GLfloat tex_coord[] = {
|
static const GLfloat lakka_tex_coord[] = {
|
||||||
0, 1,
|
0, 1,
|
||||||
1, 1,
|
1, 1,
|
||||||
0, 0,
|
0, 0,
|
||||||
@ -175,9 +175,9 @@ void lakka_draw_background(void)
|
|||||||
|
|
||||||
struct gl_coords coords;
|
struct gl_coords coords;
|
||||||
coords.vertices = 4;
|
coords.vertices = 4;
|
||||||
coords.vertex = vertex;
|
coords.vertex = lakka_vertex;
|
||||||
coords.tex_coord = tex_coord;
|
coords.tex_coord = lakka_tex_coord;
|
||||||
coords.lut_tex_coord = tex_coord;
|
coords.lut_tex_coord = lakka_tex_coord;
|
||||||
coords.color = lakka->textures[TEXTURE_BG].id ? color : black_color;
|
coords.color = lakka->textures[TEXTURE_BG].id ? color : black_color;
|
||||||
glBindTexture(GL_TEXTURE_2D, lakka->textures[TEXTURE_BG].id);
|
glBindTexture(GL_TEXTURE_2D, lakka->textures[TEXTURE_BG].id);
|
||||||
|
|
||||||
@ -225,9 +225,9 @@ static void lakka_draw_icon(lakka_handle_t *lakka,
|
|||||||
glViewport(x, gl->win_height - y, lakka->icon_size, lakka->icon_size);
|
glViewport(x, gl->win_height - y, lakka->icon_size, lakka->icon_size);
|
||||||
|
|
||||||
coords.vertices = 4;
|
coords.vertices = 4;
|
||||||
coords.vertex = vertex;
|
coords.vertex = lakka_vertex;
|
||||||
coords.tex_coord = tex_coord;
|
coords.tex_coord = lakka_tex_coord;
|
||||||
coords.lut_tex_coord = tex_coord;
|
coords.lut_tex_coord = lakka_tex_coord;
|
||||||
coords.color = color;
|
coords.color = color;
|
||||||
glBindTexture(GL_TEXTURE_2D, texture);
|
glBindTexture(GL_TEXTURE_2D, texture);
|
||||||
|
|
||||||
@ -485,8 +485,8 @@ static void lakka_draw_fbo(void)
|
|||||||
|
|
||||||
struct gl_coords coords;
|
struct gl_coords coords;
|
||||||
coords.vertices = 4;
|
coords.vertices = 4;
|
||||||
coords.vertex = vertex;
|
coords.vertex = lakka_vertex;
|
||||||
coords.tex_coord = vertex;
|
coords.tex_coord = lakka_vertex;
|
||||||
coords.color = gl->white_color_ptr;
|
coords.color = gl->white_color_ptr;
|
||||||
glBindTexture(GL_TEXTURE_2D, lakka->fbo_color);
|
glBindTexture(GL_TEXTURE_2D, lakka->fbo_color);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user