From 2d6be07fffc9c357aa4366d621f5a772b1f2f36c Mon Sep 17 00:00:00 2001 From: Craig Carnell <1188869+cscd98@users.noreply.github.com> Date: Mon, 6 Jul 2026 09:02:48 +0100 Subject: [PATCH] fix GLES/GL shared contexts define, move serialization instead --- libretro-common/include/libretro.h | 44 +++++++++++++++--------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/libretro-common/include/libretro.h b/libretro-common/include/libretro.h index 7f1a9301ba97..b3ce7c0ed6a4 100644 --- a/libretro-common/include/libretro.h +++ b/libretro-common/include/libretro.h @@ -1684,20 +1684,18 @@ enum retro_mod #define RETRO_ENVIRONMENT_SET_HW_RENDER_CONTEXT_NEGOTIATION_INTERFACE (43 | RETRO_ENVIRONMENT_EXPERIMENTAL) /** - * Notifies the frontend of any quirks associated with serialization. + * The frontend will try to use a "shared" context when setting up a hardware context. + * Mostly applicable to OpenGL. * - * Should be set in either \c retro_init or \c retro_load_game, but not both. - * @param[in, out] data uint64_t *. - * Pointer to the core's serialization quirks. - * The frontend will set the flags of the quirks it supports - * and clear the flags of those it doesn't. - * Behavior is undefined if \c NULL. - * @return \c true if this environment call is supported. - * @see retro_serialize - * @see retro_unserialize - * @see RETRO_SERIALIZATION_QUIRK + * In order for this to have any effect, + * the core must call \c RETRO_ENVIRONMENT_SET_HW_RENDER at some point + * if it hasn't already. + * + * @param data Ignored. + * @returns \c true if the environment call is available + * and the frontend supports shared hardware contexts. */ -#define RETRO_ENVIRONMENT_SET_SERIALIZATION_QUIRKS 44 +#define RETRO_ENVIRONMENT_SET_HW_SHARED_CONTEXT (44 | RETRO_ENVIRONMENT_EXPERIMENTAL) /** * Returns an interface that the core can use to access the file system. @@ -2702,18 +2700,20 @@ enum retro_mod #define RETRO_ENVIRONMENT_GET_MEMORY_STATUS (86 | RETRO_ENVIRONMENT_EXPERIMENTAL) /** - * The frontend will try to use a "shared" context when setting up a hardware context. - * Mostly applicable to OpenGL. - * - * In order for this to have any effect, - * the core must call \c RETRO_ENVIRONMENT_SET_HW_RENDER at some point - * if it hasn't already. + * Notifies the frontend of any quirks associated with serialization. * - * @param data Ignored. - * @returns \c true if the environment call is available - * and the frontend supports shared hardware contexts. + * Should be set in either \c retro_init or \c retro_load_game, but not both. + * @param[in, out] data uint64_t *. + * Pointer to the core's serialization quirks. + * The frontend will set the flags of the quirks it supports + * and clear the flags of those it doesn't. + * Behavior is undefined if \c NULL. + * @return \c true if this environment call is supported. + * @see retro_serialize + * @see retro_unserialize + * @see RETRO_SERIALIZATION_QUIRK */ -#define RETRO_ENVIRONMENT_SET_HW_SHARED_CONTEXT (87 | RETRO_ENVIRONMENT_EXPERIMENTAL) +#define RETRO_ENVIRONMENT_SET_SERIALIZATION_QUIRKS 87 /** * Result of \c RETRO_ENVIRONMENT_GET_MEMORY_STATUS.