Add GFX_CTX_FLAGS_CUSTOMIZABLE_SWAPCHAIN_IMAGES display flag

This commit is contained in:
twinaphex 2016-06-27 23:43:57 +02:00
parent 4d089a7fba
commit a24d43c8fd
2 changed files with 4 additions and 5 deletions

View File

@ -876,12 +876,10 @@ static uint32_t gfx_ctx_drm_get_flags(void *data)
uint32_t flags = 0;
gfx_ctx_drm_data_t *drm = (gfx_ctx_drm_data_t*)data;
BIT32_SET(flags, GFX_CTX_FLAGS_CUSTOMIZABLE_SWAPCHAIN_IMAGES);
if (drm->core_hw_context_enable)
{
BIT32_SET(flags, GFX_CTX_FLAGS_GL_CORE_CONTEXT);
}
else
BIT32_SET(flags, GFX_CTX_FLAGS_NONE);
return flags;
}

View File

@ -54,7 +54,8 @@ enum display_metric_types
enum display_flags
{
GFX_CTX_FLAGS_NONE = 0,
GFX_CTX_FLAGS_GL_CORE_CONTEXT
GFX_CTX_FLAGS_GL_CORE_CONTEXT,
GFX_CTX_FLAGS_CUSTOMIZABLE_SWAPCHAIN_IMAGES
};
typedef void (*gfx_ctx_proc_t)(void);