From b6d2b0f3bf3825ddd15fb52813caf7a12671f574 Mon Sep 17 00:00:00 2001 From: Twinaphex Date: Tue, 11 Sep 2012 09:57:53 +0200 Subject: [PATCH] (GL) Use HAVE_OPENGL_MODERN ifdef in some places where it's needed --- gfx/gl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gfx/gl.c b/gfx/gl.c index 2897e3bda4..702783c516 100644 --- a/gfx/gl.c +++ b/gfx/gl.c @@ -502,7 +502,7 @@ void gl_init_fbo(gl_t *gl, unsigned width, unsigned height) //////////// -#ifdef HAVE_OPENGLES +#if defined(HAVE_OPENGLES) || defined(HAVE_OPENGL_MODERN) void gl_set_coords(const struct gl_coords *coords, unsigned unit) { (void)coords; @@ -1080,7 +1080,7 @@ static bool gl_frame(void *data, const void *frame, unsigned width, unsigned hei static void gl_disable_client_arrays(void) { -#ifndef HAVE_OPENGLES +#if !defined(HAVE_OPENGLES) && !defined(HAVE_OPENGL_MODERN) glDisableClientState(GL_VERTEX_ARRAY); glDisableClientState(GL_TEXTURE_COORD_ARRAY); glDisableClientState(GL_COLOR_ARRAY);