From 7bba107415e476628434fcc4e940545e7e142751 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 8 May 2014 21:50:49 +0200 Subject: [PATCH] (shader_common.c) Some build fixes for PS3 --- gfx/shader_common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gfx/shader_common.c b/gfx/shader_common.c index 4698507301..45740c8314 100644 --- a/gfx/shader_common.c +++ b/gfx/shader_common.c @@ -40,10 +40,12 @@ void gl_load_texture_data(GLuint obj, const struct texture_image *img, glTexImage2D(GL_TEXTURE_2D, 0, driver.gfx_use_rgba ? GL_RGBA : RARCH_GL_INTERNAL_FORMAT32, img->width, img->height, 0, driver.gfx_use_rgba ? GL_RGBA : RARCH_GL_TEXTURE_TYPE32, RARCH_GL_FORMAT32, img->pixels); +#ifndef HAVE_PSGL if (mipmap) { glGenerateMipmap(GL_TEXTURE_2D); } +#endif } bool gl_load_luts(const struct gfx_shader *generic_shader, GLuint *lut_textures)