From 19810233fa36d5c471fdd5997c95f50812a91c0e Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 21 Dec 2016 16:06:24 +0100 Subject: [PATCH] Comment this out for PSGL --- gfx/common/gl_common.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gfx/common/gl_common.c b/gfx/common/gl_common.c index 36ec598843..fb04f65ac5 100644 --- a/gfx/common/gl_common.c +++ b/gfx/common/gl_common.c @@ -53,6 +53,7 @@ void gl_ff_matrix(const math_matrix_4x4 *mat) static void gl_size_format(GLint* internalFormat) { +#ifndef HAVE_PSGL switch (*internalFormat) { case GL_RGB: @@ -67,7 +68,9 @@ static void gl_size_format(GLint* internalFormat) #endif break; } +#endif } + /* This function should only be used without mipmaps and when data == NULL */ void gl_load_texture_image(GLenum target,