mirror of
https://github.com/libretro/RetroArch
synced 2025-02-04 12:40:07 +00:00
(GL) Use HAVE_OPENGL_MODERN ifdef in some places where it's needed
This commit is contained in:
parent
079585d428
commit
b6d2b0f3bf
4
gfx/gl.c
4
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 gl_set_coords(const struct gl_coords *coords, unsigned unit)
|
||||||
{
|
{
|
||||||
(void)coords;
|
(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)
|
static void gl_disable_client_arrays(void)
|
||||||
{
|
{
|
||||||
#ifndef HAVE_OPENGLES
|
#if !defined(HAVE_OPENGLES) && !defined(HAVE_OPENGL_MODERN)
|
||||||
glDisableClientState(GL_VERTEX_ARRAY);
|
glDisableClientState(GL_VERTEX_ARRAY);
|
||||||
glDisableClientState(GL_TEXTURE_COORD_ARRAY);
|
glDisableClientState(GL_TEXTURE_COORD_ARRAY);
|
||||||
glDisableClientState(GL_COLOR_ARRAY);
|
glDisableClientState(GL_COLOR_ARRAY);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user