Merge pull request #9558 from justinweiss/ctr-gfx-fix-flickering-with-osd

Fix 3DS screen flickering when OSD is enabled
This commit is contained in:
Twinaphex 2019-10-06 03:39:23 +02:00 committed by GitHub
commit 2d769d4bfb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -747,9 +747,9 @@ static bool ctr_frame(void* data, const void* frame,
ctr->frame_coords->u1 = width;
ctr->frame_coords->v1 = height;
GSPGPU_FlushDataCache(ctr->frame_coords, sizeof(ctr_vertex_t));
ctrGuSetVertexShaderFloatUniform(0, (float*)&ctr->scale_vector, 1);
}
ctrGuSetVertexShaderFloatUniform(0, (float*)&ctr->scale_vector, 1);
ctrGuSetTexture(GPU_TEXUNIT0, VIRT_TO_PHYS(ctr->texture_swizzled), ctr->texture_width, ctr->texture_height,
(ctr->smooth? GPU_TEXTURE_MAG_FILTER(GPU_LINEAR) | GPU_TEXTURE_MIN_FILTER(GPU_LINEAR)
: GPU_TEXTURE_MAG_FILTER(GPU_NEAREST) | GPU_TEXTURE_MIN_FILTER(GPU_NEAREST)) |