(CTR/3DS) video driver: better detection of frames allocated with

linearAlloc.
This commit is contained in:
aliaspider 2015-10-02 04:59:16 +01:00
parent cb4f032dd7
commit 68e2c306a9

View File

@ -455,7 +455,7 @@ static bool ctr_frame(void* data, const void* frame,
if(frame) if(frame)
{ {
if(((((u32)(frame)) >= 0x14000000 && ((u32)(frame)) < 0x1c000000)) /* frame in linear memory */ if(((((u32)(frame)) >= 0x14000000 && ((u32)(frame)) < 0x40000000)) /* frame in linear memory */
&& !((u32)frame & 0x7F) /* 128-byte aligned */ && !((u32)frame & 0x7F) /* 128-byte aligned */
&& !((pitch) & 0xF)) /* 16-byte aligned */ && !((pitch) & 0xF)) /* 16-byte aligned */
{ {