This commit is contained in:
twinaphex 2015-10-07 00:20:15 +02:00
parent 379e8f7445
commit 108bd27fab

View File

@ -581,7 +581,7 @@ static bool gl_cg_load_imports(cg_shader_data_t *cg)
} }
if ((memtype != -1u) && if ((memtype != -1u) &&
(cg->shader->variable[i].addr >= pretro_get_memory_size(memtype))) (cg->shader->variable[i].addr >= core.retro_get_memory_size(memtype)))
{ {
RARCH_ERR("Address out of bounds.\n"); RARCH_ERR("Address out of bounds.\n");
return false; return false;
@ -589,7 +589,7 @@ static bool gl_cg_load_imports(cg_shader_data_t *cg)
} }
tracker_info.wram = (uint8_t*) tracker_info.wram = (uint8_t*)
pretro_get_memory_data(RETRO_MEMORY_SYSTEM_RAM); core.retro_get_memory_data(RETRO_MEMORY_SYSTEM_RAM);
tracker_info.info = cg->shader->variable; tracker_info.info = cg->shader->variable;
tracker_info.info_elem = cg->shader->variables; tracker_info.info_elem = cg->shader->variables;