This commit is contained in:
twinaphex 2016-02-11 18:44:27 +01:00
parent 5a187a7983
commit c495c38f34
2 changed files with 15 additions and 1 deletions

View File

@ -925,6 +925,14 @@ bool glsm_ctl(enum glsm_state_ctl state, void *data)
case GLSM_CTL_UNSET_IMM_VBO:
imm_vbo_enable = false;
break;
case GLSM_CTL_PROC_ADDRESS_GET:
{
glsm_ctx_proc_address_t *proc = (glsm_ctx_proc_address_t*)data;
if (!hw_render.get_proc_address)
return false;
proc->addr = hw_render.get_proc_address;
}
break;
case GLSM_CTL_STATE_CONTEXT_RESET:
rglgen_resolve_symbols(hw_render.get_proc_address);
break;

View File

@ -109,13 +109,19 @@ enum glsm_state_ctl
GLSM_CTL_UNSET_IMM_VBO,
GLSM_CTL_IMM_VBO_DISABLE,
GLSM_CTL_IMM_VBO_DRAW,
GLSM_CTL_IS_FRAMEBUFFER_LOCKED
GLSM_CTL_IS_FRAMEBUFFER_LOCKED,
GLSM_CTL_PROC_ADDRESS_GET
};
typedef bool (*glsm_imm_vbo_draw)(void *);
typedef bool (*glsm_imm_vbo_disable)(void *);
typedef bool (*glsm_framebuffer_lock)(void *);
typedef struct glsm_ctx_proc_address
{
retro_get_proc_address_t addr;
} glsm_ctx_proc_address_t;
typedef struct glsm_ctx_params
{
glsm_framebuffer_lock framebuffer_lock;