From 5ed0d00249022762e42173c8f691454556aee0e9 Mon Sep 17 00:00:00 2001 From: Themaister Date: Fri, 16 Dec 2011 16:38:25 +0100 Subject: [PATCH] Try some stuff. --- xenon/xenon360_video.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xenon/xenon360_video.c b/xenon/xenon360_video.c index 6bf0121ffa..da80715f93 100644 --- a/xenon/xenon360_video.c +++ b/xenon/xenon360_video.c @@ -183,6 +183,8 @@ static bool xenon360_gfx_frame(void *data, const void *frame, // FIXME: Proper UV handling goes here later. //Xe_VB_Unlock(&xe->dev, xe->vb); + Xe_InvalidateState(&xe->dev); + uint16_t *dst = Xe_Surface_LockRect(&xe->dev, xe->tex, 0, 0, 0, 0, XE_LOCK_WRITE); const uint16_t *src = frame; unsigned stride_in = pitch >> 1; @@ -193,10 +195,10 @@ static bool xenon360_gfx_frame(void *data, const void *frame, memcpy(dst, src, copy_size); Xe_Surface_Unlock(&xe->dev, xe->tex); - Xe_InvalidateState(&xe->dev); Xe_DrawPrimitive(&xe->dev, XE_PRIMTYPE_TRIANGLESTRIP, 0, 2); + Xe_SetClearColor(&xe->dev, 0); Xe_Resolve(&xe->dev); Xe_Sync(&xe->dev);