diff --git a/core/rend/TexCache.cpp b/core/rend/TexCache.cpp index 69039fd82..caa3de539 100644 --- a/core/rend/TexCache.cpp +++ b/core/rend/TexCache.cpp @@ -167,8 +167,6 @@ vram_block* libCore_vramlock_Lock(u32 start_offset64,u32 end_offset64,void* user { vram_block* block=(vram_block* )malloc(sizeof(vram_block)); - end_offset64=start_offset64+4095; - if (end_offset64>(VRAM_SIZE-1)) { msgboxf("vramlock_Lock_64: end_offset64>(VRAM_SIZE-1) \n Tried to lock area out of vram , possibly bug on the pvr plugin",MBX_OK); @@ -273,4 +271,4 @@ void libCore_vramlock_Unlock_block_wb(vram_block* block) //more work needed free(block); } -} \ No newline at end of file +}