From 227029f678202a5dfe434110baf5f22505761022 Mon Sep 17 00:00:00 2001 From: luboslenco Date: Fri, 22 Sep 2023 15:09:29 +0200 Subject: [PATCH] Use KORE_OPENGL_ES define instead of OPENGLES --- .../OpenGL/Sources/kinc/backend/graphics4/pipeline.c.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Backends/Graphics4/OpenGL/Sources/kinc/backend/graphics4/pipeline.c.h b/Backends/Graphics4/OpenGL/Sources/kinc/backend/graphics4/pipeline.c.h index ff18d9396..c659c1f26 100644 --- a/Backends/Graphics4/OpenGL/Sources/kinc/backend/graphics4/pipeline.c.h +++ b/Backends/Graphics4/OpenGL/Sources/kinc/backend/graphics4/pipeline.c.h @@ -157,7 +157,7 @@ static void compileShader(unsigned *id, const char *source, size_t length, kinc_ void kinc_g4_pipeline_compile(kinc_g4_pipeline_t *state) { compileShader(&state->vertex_shader->impl._glid, state->vertex_shader->impl.source, state->vertex_shader->impl.length, KINC_G4_SHADER_TYPE_VERTEX); compileShader(&state->fragment_shader->impl._glid, state->fragment_shader->impl.source, state->fragment_shader->impl.length, KINC_G4_SHADER_TYPE_FRAGMENT); -#ifndef OPENGLES +#ifndef KORE_OPENGL_ES if (state->geometry_shader != NULL) { compileShader(&state->geometry_shader->impl._glid, state->geometry_shader->impl.source, state->geometry_shader->impl.length, KINC_G4_SHADER_TYPE_GEOMETRY); @@ -173,7 +173,7 @@ void kinc_g4_pipeline_compile(kinc_g4_pipeline_t *state) { #endif glAttachShader(state->impl.programId, state->vertex_shader->impl._glid); glAttachShader(state->impl.programId, state->fragment_shader->impl._glid); -#ifndef OPENGLES +#ifndef KORE_OPENGL_ES if (state->geometry_shader != NULL) { glAttachShader(state->impl.programId, state->geometry_shader->impl._glid); }