Skip to content

Commit

Permalink
Try some stuff.
Browse files Browse the repository at this point in the history
  • Loading branch information
Themaister committed Dec 24, 2011
1 parent 630f19f commit 2680971
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xenon/xenon360_video.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);

Expand Down

0 comments on commit 2680971

Please sign in to comment.