mirror of
https://github.com/libretro/RetroArch
synced 2025-04-01 04:20:27 +00:00
(shader_common.c) Style nits
This commit is contained in:
parent
d7f50bdeac
commit
c35c1fdb74
@ -45,16 +45,16 @@ void gl_load_texture_data(GLuint obj, const struct texture_image *img,
|
|||||||
0, driver.gfx_use_rgba ? GL_RGBA : RARCH_GL_TEXTURE_TYPE32, RARCH_GL_FORMAT32, img->pixels);
|
0, driver.gfx_use_rgba ? GL_RGBA : RARCH_GL_TEXTURE_TYPE32, RARCH_GL_FORMAT32, img->pixels);
|
||||||
#ifndef HAVE_PSGL
|
#ifndef HAVE_PSGL
|
||||||
if (mipmap)
|
if (mipmap)
|
||||||
{
|
|
||||||
glGenerateMipmap(GL_TEXTURE_2D);
|
glGenerateMipmap(GL_TEXTURE_2D);
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
bool gl_load_luts(const struct gfx_shader *generic_shader, GLuint *lut_textures)
|
bool gl_load_luts(const struct gfx_shader *generic_shader, GLuint *lut_textures)
|
||||||
{
|
{
|
||||||
unsigned i;
|
unsigned i, num_luts;
|
||||||
unsigned num_luts = min(generic_shader->luts, GFX_MAX_TEXTURES);
|
|
||||||
|
num_luts = min(generic_shader->luts, GFX_MAX_TEXTURES);
|
||||||
|
|
||||||
if (!generic_shader->luts)
|
if (!generic_shader->luts)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
@ -63,9 +63,9 @@ bool gl_load_luts(const struct gfx_shader *generic_shader, GLuint *lut_textures)
|
|||||||
glGenTextures(num_luts, lut_textures);
|
glGenTextures(num_luts, lut_textures);
|
||||||
for (i = 0; i < num_luts; i++)
|
for (i = 0; i < num_luts; i++)
|
||||||
{
|
{
|
||||||
|
struct texture_image img = {0};
|
||||||
RARCH_LOG("Loading texture image from: \"%s\" ...\n",
|
RARCH_LOG("Loading texture image from: \"%s\" ...\n",
|
||||||
generic_shader->lut[i].path);
|
generic_shader->lut[i].path);
|
||||||
struct texture_image img = {0};
|
|
||||||
if (!texture_image_load(generic_shader->lut[i].path, &img))
|
if (!texture_image_load(generic_shader->lut[i].path, &img))
|
||||||
{
|
{
|
||||||
RARCH_ERR("Failed to load texture image from: \"%s\"\n", generic_shader->lut[i].path);
|
RARCH_ERR("Failed to load texture image from: \"%s\"\n", generic_shader->lut[i].path);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user