mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 04:14:00 +00:00
(GLX) Start adding hooks for MSAA
This commit is contained in:
parent
601aba72ea
commit
1f99df6740
@ -75,9 +75,10 @@ typedef struct gfx_ctx_x_data
|
||||
#endif
|
||||
} gfx_ctx_x_data_t;
|
||||
|
||||
static unsigned g_major;
|
||||
static unsigned g_minor;
|
||||
static enum gfx_ctx_api x_api;
|
||||
static bool x_enable_msaa = false;
|
||||
static unsigned g_major = 0;
|
||||
static unsigned g_minor = 0;
|
||||
static enum gfx_ctx_api x_api = GFX_CTX_NONE;
|
||||
|
||||
#ifdef HAVE_OPENGL
|
||||
static PFNGLXCREATECONTEXTATTRIBSARBPROC glx_create_context_attribs;
|
||||
@ -924,6 +925,10 @@ static uint32_t gfx_ctx_x_get_flags(void *data)
|
||||
{
|
||||
BIT32_SET(flags, GFX_CTX_FLAGS_NONE);
|
||||
}
|
||||
if (x_enable_msaa)
|
||||
{
|
||||
BIT32_SET(flags, GFX_CTX_FLAGS_MULTISAMPLING);
|
||||
}
|
||||
return flags;
|
||||
}
|
||||
|
||||
@ -932,6 +937,8 @@ static void gfx_ctx_x_set_flags(void *data, uint32_t flags)
|
||||
gfx_ctx_x_data_t *x = (gfx_ctx_x_data_t*)data;
|
||||
if (BIT32_GET(flags, GFX_CTX_FLAGS_GL_CORE_CONTEXT))
|
||||
x->core_hw_context_enable = true;
|
||||
if (BIT32_GET(flags, GFX_CTX_FLAGS_MULTISAMPLING))
|
||||
x_enable_msaa = true;
|
||||
}
|
||||
|
||||
static void gfx_ctx_x_make_current(bool release)
|
||||
|
@ -51,6 +51,7 @@ enum display_flags
|
||||
{
|
||||
GFX_CTX_FLAGS_NONE = 0,
|
||||
GFX_CTX_FLAGS_GL_CORE_CONTEXT,
|
||||
GFX_CTX_FLAGS_MULTISAMPLING,
|
||||
GFX_CTX_FLAGS_CUSTOMIZABLE_SWAPCHAIN_IMAGES
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user